opnsense-src/stand/userboot/userboot
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
..
autoload.c
biossmap.c
bootinfo.c Transition to boot_env_to_howto and boot_howto_to_env in the boot 2018-07-13 16:43:29 +00:00
bootinfo32.c Extend loader(8) geli support to all architectures and all disk-like devices. 2018-07-13 17:50:25 +00:00
bootinfo64.c Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
conf.c Fix pkgfs stat so it satisfies libsecureboot 2020-03-25 19:12:19 +00:00
copy.c veloader use vectx API for kernel and modules 2020-03-08 17:42:42 +00:00
devicename.c Stop using ../zfs/libzfs.h but instead use libzfs.h. 2018-07-08 07:42:58 +00:00
elf32_freebsd.c
elf64_freebsd.c Stop setting PG_U in bootstrap mappings. 2020-04-24 13:53:40 +00:00
host.c Fix pkgfs stat so it satisfies libsecureboot 2020-03-25 19:12:19 +00:00
libuserboot.h userboot: mark host_fsops as extern 2020-03-29 02:29:06 +00:00
main.c loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
Makefile loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
Makefile.depend
userboot_cons.c
userboot_disk.c loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
version userboot: handle guest interpreter mismatches more intelligently 2018-09-01 02:23:45 +00:00