git: 18bbc3c82e13 - stable/14 - release: vmimage: setup the default BE properly

From: Kyle Evans <kevans_at_FreeBSD.org>
Date: Wed, 01 Jan 2025 05:46:02 UTC
The branch stable/14 has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=18bbc3c82e1343d28a1fcad731f28c889602a363

commit 18bbc3c82e1343d28a1fcad731f28c889602a363
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2024-12-11 01:19:08 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2025-01-01 05:45:15 +0000

    release: vmimage: setup the default BE properly
    
    All of the BE datasets need to be set canmount=noauto so that creating
    a new BE and switching to it can actually work.  With the current setup,
    the zfs rc script will mount the `default` BE over whichever new BE is
    activated once it runs.
    
    Reported by:    andrew
    Reviewed by:    andrew, re (cperciva), imp, markj
    
    (cherry picked from commit 636d377264f51e3dd33bd7f33ebf03e2e148d40d)
---
 release/tools/vmimage.subr | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/release/tools/vmimage.subr b/release/tools/vmimage.subr
index c95a6dc82937..3761faf94810 100644
--- a/release/tools/vmimage.subr
+++ b/release/tools/vmimage.subr
@@ -190,7 +190,7 @@ buildfs() {
 			-o poolname=zroot -o bootfs=zroot/ROOT/default -o rootpath=/ \
 			-o fs=zroot\;mountpoint=none \
 			-o fs=zroot/ROOT\;mountpoint=none \
-			-o fs=zroot/ROOT/default\;mountpoint=/ \
+			-o fs=zroot/ROOT/default\;mountpoint=/\;canmount=noauto \
 			-o fs=zroot/home\;mountpoint=/home \
 			-o fs=zroot/tmp\;mountpoint=/tmp\;exec=on\;setuid=off \
 			-o fs=zroot/usr\;mountpoint=/usr\;canmount=off \