Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Dec 2024 01:19:23 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 636d377264f5 - main - release: vmimage: setup the default BE properly
Message-ID:  <202412110119.4BB1JNlV007320@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=636d377264f51e3dd33bd7f33ebf03e2e148d40d

commit 636d377264f51e3dd33bd7f33ebf03e2e148d40d
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2024-12-11 01:19:08 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2024-12-11 01:19:08 +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
    Differential Revision:  https://reviews.freebsd.org/D48017
---
 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 5d98b8990705..223ef928e83c 100644
--- a/release/tools/vmimage.subr
+++ b/release/tools/vmimage.subr
@@ -187,7 +187,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 \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412110119.4BB1JNlV007320>