Date: Wed, 02 Nov 2022 23:37:51 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 267535] freebsd-update does not create proper deep boot environment backups Message-ID: <bug-267535-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267535 Bug ID: 267535 Summary: freebsd-update does not create proper deep boot environment backups Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: freebsd@juicer.orange-carb.org freebsd-update assumes that the system is using a "shallow" boot environmen= t as created by the Auto ZFS option to bsdinstall(8). However, the zfsbe rc(8) script also supports a "deep" boot environment in which the boot environmen= t is divided into subordinate datasets. (I am using the terms defined in bectl(8= ) at "Boot Environment Structures.") In deep boot environments, The action taken by freebsd-update (bectl create) results in an empty copy of the ROOT dataset that holds the subordinate datasets. In other words, freebsd-update is backing up the wrong thing, and therefore there is no backup of the real boot environment, contrary to expectations. This is unhelpful at best, and at worst provides a false sens= e of security should a restore be necessary. What should happen is that freebsd-update should determine if this is a sha= llow or deep boot environment. In the latter case, it should instead run "bectl create -r" to correctly back up the deep boot environment. Thank you for a useful utility. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267535-227>