Add zfsboot to the scripted interface of bsdinstall(8); oops!

NB: If the zfsboot variables ($ZFSBOOT_*) are set, a script is
assumed to want zfsboot module instead of scriptedpart module.

Submitted by:	Loïc Brarda <loic.brarda@cern.ch>
Reviewed by:	nwhitehorn@
MFC after:	3 days
This commit is contained in:
Devin Teske 2014-02-16 06:56:44 +00:00
parent aa11ae4768
commit c7684efd3a

View File

@ -95,7 +95,11 @@ fi
# Make partitions
rm -f $PATH_FSTAB
touch $PATH_FSTAB
bsdinstall scriptedpart "$PARTITIONS"
if [ "$ZFSBOOT_DISKS" ]; then
bsdinstall zfsboot
else
bsdinstall scriptedpart "$PARTITIONS"
fi
bsdinstall mount
# Unpack distributions