From 3bf53c4c8f53b1f19313e9c31415c7eee830cdc0 Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu Date: Mon, 7 Nov 2022 11:47:33 +0800 Subject: [PATCH] release(7): Enable zpoolupgrade rc script in ZFS based VM images This will enable VM access to all ZFS feature automatically, only on a newly installed or provisioned VM or cloud instance. Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37283 --- release/tools/vmimage.subr | 1 + 1 file changed, 1 insertion(+) diff --git a/release/tools/vmimage.subr b/release/tools/vmimage.subr index 8982e768527..a65ec4f1a1f 100644 --- a/release/tools/vmimage.subr +++ b/release/tools/vmimage.subr @@ -83,6 +83,7 @@ vm_install_base() { if [ "${VMFS}" = zfs ]; then echo "zfs_enable=\"YES\"" >> ${DESTDIR}/etc/rc.conf echo "zpool_reguid=\"zroot\"" >> ${DESTDIR}/etc/rc.conf + echo "zpool_upgrade=\"zroot\"" >> ${DESTDIR}/etc/rc.conf fi if ! [ -z "${QEMUSTATIC}" ]; then