freebsd-nq/stand
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
..
arm Remove tests for obsolete compilers in the build system 2020-05-12 15:22:40 +00:00
arm64 No need to make objects here. 2018-04-27 22:15:18 +00:00
common loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
defaults loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
efi loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
fdt stand/fdt: Scale blob size better as overlays apply 2020-01-09 04:34:42 +00:00
ficl stand/ficl 64-bit compatibility 2020-09-14 15:48:30 +00:00
ficl32 Enable veriexec for loader 2019-02-26 06:22:10 +00:00
forth loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
i386 loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
kshim A more definitions to kernel emulation shim in order to build stand/usb. 2018-02-07 18:50:36 +00:00
liblua Only set WARNS if not defined 2020-09-11 13:28:37 +00:00
liblua32 Add Lua as a scripting langauge to /boot/loader 2018-02-12 15:31:53 +00:00
libofw Fix 64-bit build of libofw. 2020-09-08 23:22:11 +00:00
libsa loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
libsa32 Enable veriexec for loader 2019-02-26 06:22:10 +00:00
lua loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
man Update to today's date 2020-09-01 07:56:28 +00:00
mips stand: -fno-common fixes for !x86 loaders 2020-04-07 12:57:50 +00:00
powerpc stand/ficl 64-bit compatibility 2020-09-14 15:48:30 +00:00
uboot stand/uboot: fix setting of gateip.s_addr 2020-06-01 23:44:03 +00:00
usb Fix build of stand/usb . 2020-01-23 10:40:34 +00:00
userboot loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
defs.mk [PowerPC] Remove obsolete MK_LOADER_FORCE_LE 2020-09-15 04:22:28 +00:00
fdt.mk
ficl.mk ficl pfopen: verify file 2019-05-24 19:43:38 +00:00
loader.mk loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
lua.mk Do not include float interfaces when using libsa. 2018-02-23 04:04:25 +00:00
Makefile Move stand/ofw/libofw to stand/libofw. 2020-01-02 04:34:22 +00:00
Makefile.amd64 Create LOADER_UBOOT, and LOADER_OFW. Move these options out of 2018-03-01 19:50:55 +00:00
Makefile.inc Minor flags cleanup 2017-12-02 00:06:58 +00:00
uboot.mk Unify metadata load files for arm, mips, powerpc, sparc64 2018-02-13 03:44:50 +00:00