Add zfs_enable to rc.conf
This commit is contained in:
parent
9266f02268
commit
a1cad581b9
1 changed files with 2 additions and 0 deletions
|
@ -165,6 +165,7 @@ sysrc -f "$UFSTARGET/boot/loader.conf" \
|
|||
autoboot_delay="-1" \
|
||||
|
||||
sysrc -f "$UFSTARGET/etc/rc.conf" \
|
||||
zfs_enable="YES" \
|
||||
ntpd_enable="YES" \
|
||||
sshd_enable="YES" \
|
||||
growfs_enable="YES" \
|
||||
|
@ -200,6 +201,7 @@ umount "$UFSTARGET/dev" "$UFSTARGET/tmp" "$UFSTARGET/var/tmp"
|
|||
rsync -aH --fileflags --inplace "$UFSTARGET/." "$ZFSTARGET"
|
||||
|
||||
sysrc -f "$UFSTARGET/boot/loader.conf" -x zfs_load
|
||||
sysrc -f "$UFSTARGET/etc/rc.conf" -x zfs_enable
|
||||
printf '# Device\tMountpoint\tFStype\tOptions\t\tDump\tPass#\n' \
|
||||
>"$ZFSTARGET/etc/fstab"
|
||||
printf '# Device\tMountpoint\tFStype\tOptions\t\tDump\tPass#\n%s\t%s\t\t%s\t%s\t%s\t%s\n' \
|
||||
|
|
Loading…
Reference in a new issue