loader: zfs should support bootonce an nextbootbootonce feature is temporary, one time boot, activated by"bectl activate -t BE", "bectl activate -T BE" will reset the bootonce flag.By default, t
loader: zfs should support bootonce an nextbootbootonce 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 nextboot will use previously active BE.By setting zfs_bootonce_activate="YES" in rc.conf, the bootonce BE willbe 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 infreebsd:nvstore nvlist, also stored in boot pool label bootenv area.On boot, the loader will process /boot/nextboot.conf if nextboot_enableis "YES", and will set nextboot_enable to "NO", preventing /boot/nextboot.confprocessing 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 andfor 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
show more ...