From a1cad581b9ab194fc4216301f1d42d7b61d0cbe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rn=20=C3=85ne=20de=20Jong?= Date: Sat, 11 Jun 2022 22:00:22 +0200 Subject: [PATCH] Add zfs_enable to rc.conf --- opennebula-images/freebsd-build-opennebula-image.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opennebula-images/freebsd-build-opennebula-image.sh b/opennebula-images/freebsd-build-opennebula-image.sh index b77e68c..bf3f06c 100755 --- a/opennebula-images/freebsd-build-opennebula-image.sh +++ b/opennebula-images/freebsd-build-opennebula-image.sh @@ -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' \