git: 636d377264f5 - main - release: vmimage: setup the default BE properly
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Dec 2024 01:19:23 UTC
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 \