aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2023-10-12 02:51:07 +0000
committerKyle Evans <kevans@FreeBSD.org>2023-10-24 16:12:01 +0000
commite34fdb7c119e2913d0910033e6a26fd6c08b9503 (patch)
tree072cfe05c5a97fc2e039491fbf96955784e3ecbf
parentee3a92d1bffc27a6a341b97d3a1d2d166fed1d3a (diff)
downloadsrc-e34fdb7c119e2913d0910033e6a26fd6c08b9503.tar.gz
src-e34fdb7c119e2913d0910033e6a26fd6c08b9503.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 Approved by: re (gjb) (cherry picked from commit 989c5f6da99081b1f2b76ec09e91078e531e1250) (cherry picked from commit 5c2a559876d123ba386612319bf42e7b32dee590)
-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 c6432dcd6b0e..438e13a51154 100644
--- a/usr.sbin/freebsd-update/freebsd-update.sh
+++ b/usr.sbin/freebsd-update/freebsd-update.sh
@@ -916,7 +916,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