]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
freebsd-update: create a ZFS boot environment on install
authorDave Fullard <dave@fullard.ca>
Fri, 16 Jul 2021 04:02:48 +0000 (23:02 -0500)
committerKyle Evans <kevans@FreeBSD.org>
Sun, 29 Aug 2021 16:56:17 +0000 (11:56 -0500)
commitc538903f7bec5bda540cf646841abe126d07193c
tree0f4395475aa1a0e21ea862bc36af270b89dc7bdd
parente92630fc682954a7b4f724f4a8174d196d7d9cc5
freebsd-update: create a ZFS boot environment on install

Updated freebsd-update to allow it to create boot environments using
bectl should the system support it. The bectl utility was updated in
r352211 (490e13c1403f) to support a 'check' to determine if the system
supports boot environments.  If UFS is used, the bectl check will fail
then no attempt will be made to create the boot environment.

If freebsd-update is run inside a jail, no attempt will be made to
create a boot environment.

The boot environment function will create a new environment using the
format: current FreeBSD kernel version and date/timestamp, example:

12.0-RELEASE-p10_2019-10-03_185233

This functionality can be disabled by setting 'CreateBootEnv' in
freebsd-update.conf to 'no'.

(cherry picked from commit f28f138905416c45ebaa6429f44a0b88a72f54b1)
usr.sbin/freebsd-update/freebsd-update.conf
usr.sbin/freebsd-update/freebsd-update.sh