freebsd-skq/stand/lua
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
..
cli.lua lualoader: config: improve readConfFiles, rename to readConf 2020-04-30 21:04:39 +00:00
cli.lua.8 lualoader: Add reload-conf loader command 2019-09-14 03:38:18 +00:00
color.lua lualoader: fix setting of loader_color=NO in loader.conf(5) 2019-10-21 20:17:31 +00:00
color.lua.8 Add color.lua(8), password.lua(8), and screen.lua(8) 2018-08-20 02:37:24 +00:00
config.lua loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
config.lua.8 lualoader: config: improve readConfFiles, rename to readConf 2020-04-30 21:04:39 +00:00
core.lua zfs: add an option to the bootloader to rewind the ZFS checkpoint 2020-08-18 19:48:04 +00:00
core.lua.8 Eliminate zfsloader man page. 2018-07-20 05:17:49 +00:00
drawer.lua lualoader: improve drawer error handling 2020-06-01 23:26:37 +00:00
drawer.lua.8 Add drawer.lua(8) 2018-08-20 02:08:39 +00:00
hook.lua Remove "All Rights Reserved" on files that I hold sole copyright on 2018-05-09 16:44:19 +00:00
hook.lua.8 lualoader: Add hook.lua(8) to tree 2018-06-09 14:26:30 +00:00
loader.lua loader: Fully reset terminal settings, not just colors 2020-03-27 17:37:31 +00:00
logo-beastie.lua loader_lua: lua color changes should end with reset 2019-09-22 17:39:20 +00:00
logo-beastiebw.lua Remove "All Rights Reserved" on files that I hold sole copyright on 2018-05-09 16:44:19 +00:00
logo-fbsdbw.lua Remove "All Rights Reserved" on files that I hold sole copyright on 2018-05-09 16:44:19 +00:00
logo-orb.lua loader_lua: lua color changes should end with reset 2019-09-22 17:39:20 +00:00
logo-orbbw.lua Remove "All Rights Reserved" on files that I hold sole copyright on 2018-05-09 16:44:19 +00:00
Makefile stand: consolidate knowledge of lua path 2019-11-02 03:37:58 +00:00
menu.lua zfs: add an option to the bootloader to rewind the ZFS checkpoint 2020-08-18 19:48:04 +00:00
menu.lua.8 Remove "All Rights Reserved" on files that I hold sole copyright on 2018-05-09 16:44:19 +00:00
password.lua Further normalize copyright notices 2019-09-26 16:19:22 +00:00
password.lua.8 Add color.lua(8), password.lua(8), and screen.lua(8) 2018-08-20 02:37:24 +00:00
screen.lua lualoader: don't botch disabling of color 2019-10-21 20:09:43 +00:00
screen.lua.8 Add color.lua(8), password.lua(8), and screen.lua(8) 2018-08-20 02:37:24 +00:00