freebsd-skq/cddl/lib
Toomas Soome e307eb94ae loader: zfs should support bootonce an nextboot
bootonce feature is temporary, one time boot, activated by
"bectl activate -t BE", "bectl activate -T BE" will reset the bootonce flag.

By default, the bootonce setting is reset on attempt to boot and the next
boot will use previously active BE.

By setting zfs_bootonce_activate="YES" in rc.conf, the bootonce BE will
be set permanently active.

bootonce dataset name is recorded in boot pool labels, bootenv area.

in case of nextboot, the nextboot_enable boolean variable is recorded in
freebsd:nvstore nvlist, also stored in boot pool label bootenv area.
On boot, the loader will process /boot/nextboot.conf if nextboot_enable
is "YES", and will set nextboot_enable to "NO", preventing /boot/nextboot.conf
processing on next boot.

bootonce and nextboot features are usable in both UEFI and BIOS boot.

To use bootonce/nextboot features, the boot loader needs to be updated on disk;
if loader.efi is stored on ESP, then ESP needs to be updated and
for BIOS boot, stage2 (zfsboot or gptzfsboot) needs to be updated
(gpart or other tools).

At this time, only lua loader is updated.

Sponsored by:	Netflix, Klara Inc.
Differential Revision:	https://reviews.freebsd.org/D25512
2020-09-21 09:01:10 +00:00
..
drti Remove -I flag for include path that doesn't exist 2020-09-10 15:37:07 +00:00
libavl Merge OpenZFS support in to HEAD. 2020-08-25 02:21:27 +00:00
libctf Remove -I flag for include path that doesn't exist 2020-09-10 15:37:07 +00:00
libdtrace Remove -I flag for include path that doesn't exist 2020-09-10 15:37:07 +00:00
libicp Merge OpenZFS support in to HEAD. 2020-08-25 02:21:27 +00:00
libicp_rescue Merge OpenZFS support in to HEAD. 2020-08-25 02:21:27 +00:00
libnvpair Merge OpenZFS support in to HEAD. 2020-08-25 02:21:27 +00:00
libspl Fix dtrace tools bootstrap on non-FreeBSD after OpenZFS import 2020-09-19 12:08:16 +00:00
libtpool Merge OpenZFS support in to HEAD. 2020-08-25 02:21:27 +00:00
libumem Update Makefile.depend files 2019-12-11 17:37:53 +00:00
libuutil Merge OpenZFS support in to HEAD. 2020-08-25 02:21:27 +00:00
libzfs Use MACHINE_CPUARCH when checking for arm64 2020-09-14 16:12:28 +00:00
libzfs_core Merge OpenZFS support in to HEAD. 2020-08-25 02:21:27 +00:00
libzfsbootenv loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
libzpool loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
libzutil Merge OpenZFS support in to HEAD. 2020-08-25 02:21:27 +00:00
tests
Makefile loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
Makefile.inc