Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Oct 2023 00:04:53 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: c1c0873c9d3f - stable/12 - freebsd-update: create deep BEs by default
Message-ID:  <202310240004.39O04rwX037760@gitrepo.freebsd.org>

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

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

commit c1c0873c9d3f6c05168303d0b95f9363c1e6c371
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2023-10-12 02:51:07 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2023-10-24 00:04:42 +0000

    freebsd-update: create deep BEs by default
    
    The -r flag to bectl needs to go away, and we need to just do the right
    thing.  In the meantime, we can apply an -r in freebsd-update as a
    minimal fix to stop creating partial backups in these (non-default) deep
    BE setups.
    
    PR:             267535
    (cherry picked from commit 989c5f6da99081b1f2b76ec09e91078e531e1250)
---
 usr.sbin/freebsd-update/freebsd-update.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh
index 5a523775dbbb..f89ee032e1f8 100644
--- a/usr.sbin/freebsd-update/freebsd-update.sh
+++ b/usr.sbin/freebsd-update/freebsd-update.sh
@@ -918,7 +918,7 @@ install_create_be () {
 			echo -n "Creating snapshot of existing boot environment... "
 			VERSION=`freebsd-version -ku | sort -V | tail -n 1`
 			TIMESTAMP=`date +"%Y-%m-%d_%H%M%S"`
-			bectl create ${VERSION}_${TIMESTAMP}
+			bectl create -r ${VERSION}_${TIMESTAMP}
 			if [ $? -eq 0 ]; then
 				echo "done.";
 			else



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