Skip to content

Commit

Permalink
Update bsdinstall to handle the new nozfs flavor, and the
Browse files Browse the repository at this point in the history
change from sysutils/zol -> sysutils/openzfs
  • Loading branch information
kmoore134 committed Jun 11, 2019
1 parent 41dd571 commit 1e19576
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions usr.sbin/bsdinstall/scripts/auto
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ fi
PFLAVORS="\
generic \"Default options and features\" \
minimal \"Less userland features\" \
zol \"Using sysutils/zol as the default ZFS\""
nozfs \"World/Kernel built without ZFS\" \
openzfs \"Use sysutils/openzfs as the default ZFS\""

exec 3>&1
OSFLAVOR=`echo $PFLAVORS | xargs dialog --backtitle "FreeBSD Installer" \
Expand All @@ -223,7 +224,10 @@ OSFLAVOR=`echo $PFLAVORS | xargs dialog --backtitle "FreeBSD Installer" \
exec 3>&-

case "$OSFLAVOR" in
generic|minimal|zol) ;;
generic|minimal|nozfs) ;;
openzfs) OSFLAVOR="nozfs"
EXTRAPKGS="openzfs"
;;
*)
error "Unknown OS flavor"
;;
Expand Down Expand Up @@ -280,7 +284,7 @@ case "$PARTMODE" in
esac

# Install base packages
pkg -r $BSDINSTALL_CHROOT install -y os-${OSFLAVOR}-userland os-${OSFLAVOR}-kernel pkg ca_root_nss || error "Failed package base installation!"
pkg -r $BSDINSTALL_CHROOT install -y os-${OSFLAVOR}-userland os-${OSFLAVOR}-kernel pkg ca_root_nss ${EXTRAPKGS} || error "Failed package base installation!"

# Set up boot loader
bsdinstall bootconfig || error "Failed to configure bootloader"
Expand Down
4 changes: 2 additions & 2 deletions usr.sbin/bsdinstall/scripts/zfsboot
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ FSTAB_FMT="%s\t\t%s\t%s\t%s\t\t%s\t%s\n"
# Check which version of ZFS to use
#
case $OSFLAVOR in
zol)
kldload /boot/modules/zfs.ko
nozfs)
kldload /boot/modules/openzfs.ko
ZFS="/usr/local/sbin/zfs"
ZPOOL="/usr/local/sbin/zpool"
;;
Expand Down

0 comments on commit 1e19576

Please sign in to comment.