aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2023-10-12 02:51:07 +0000
committerEd Maste <emaste@FreeBSD.org>2023-11-08 00:59:45 +0000
commite79edfaf68c542c8545670e911ae83ca0e3493b5 (patch)
tree6559f44d4a11c8a51c492850078449214fcfa610
parentacd860c3622d2591f4eeaaf241094c311c5c642a (diff)
downloadsrc-e79edfaf68c542c8545670e911ae83ca0e3493b5.tar.gz
src-e79edfaf68c542c8545670e911ae83ca0e3493b5.zip
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) (cherry picked from commit 80f747781f125576de40ab8b3d8d70b351ef0518) Approved by: so Security: FreeBSD-EN-23:13
-rw-r--r--usr.sbin/freebsd-update/freebsd-update.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh
index 0c4053715b70..42cd2087a3ba 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