Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jul 2021 07:01:03 -0600
From:      Alan Somers <asomers@freebsd.org>
To:        Kyle Evans <kevans@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>,  "<dev-commits-src-all@freebsd.org>" <dev-commits-src-all@freebsd.org>, dev-commits-src-main@freebsd.org
Subject:   Re: git: f28f13890541 - main - freebsd-update: create a ZFS boot environment on install
Message-ID:  <CAOtMX2h5RfGeq5NTQY-%2BPuQvgv=M%2BjNbxgwLwDgu1kc30-UOBQ@mail.gmail.com>
In-Reply-To: <202107160407.16G47SO1089378@gitrepo.freebsd.org>

index | next in thread | previous in thread | raw e-mail

On Thu, Jul 15, 2021 at 10:07 PM Kyle Evans <kevans@freebsd.org> wrote:

> The branch main has been updated by kevans:
>
> URL:
> https://cgit.FreeBSD.org/src/commit/?id=f28f138905416c45ebaa6429f44a0b88a72f54b1
>
> commit f28f138905416c45ebaa6429f44a0b88a72f54b1
> Author:     Dave Fullard <dave@fullard.ca>
> AuthorDate: 2021-07-16 04:02:48 +0000
> Commit:     Kyle Evans <kevans@FreeBSD.org>
> CommitDate: 2021-07-16 04:07:00 +0000
>
>     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'.
>
>     Discussed with: allanjude
>     MFC after:      1 week
>     Differential Revision:  https://reviews.freebsd.org/D21892
> ---
>  usr.sbin/freebsd-update/freebsd-update.conf |  3 ++
>  usr.sbin/freebsd-update/freebsd-update.sh   | 57
> +++++++++++++++++++++++++++++
>  2 files changed, 60 insertions(+)
>

Ooh, are you getting ready to make freebsd-update install upgrades into a
fresh BE?  That would be pretty cool.  It's already cool that you can do it
today, but it takes about 10 commands instead of one.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2h5RfGeq5NTQY-%2BPuQvgv=M%2BjNbxgwLwDgu1kc30-UOBQ>