e307eb94ae
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
50 lines
968 B
Makefile
50 lines
968 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
SUBDIR= drti \
|
|
libavl \
|
|
libctf \
|
|
libdtrace \
|
|
${_libicp} \
|
|
${_libicp_rescue} \
|
|
libnvpair \
|
|
libspl \
|
|
${_libtpool} \
|
|
libumem \
|
|
libuutil \
|
|
${_libzfs_core} \
|
|
${_libzfs} \
|
|
${_libzfsbootenv} \
|
|
${_libzpool} \
|
|
${_libzutil}
|
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
|
|
.if ${MK_ZFS} != "no"
|
|
_libzfs_core= libzfs_core
|
|
_libicp= libicp
|
|
_libicp_rescue= libicp_rescue
|
|
_libzfs= libzfs
|
|
_libzutil= libzutil
|
|
_libzfsbootenv= libzfsbootenv
|
|
.if ${MK_LIBTHR} != "no"
|
|
_libzpool= libzpool
|
|
_libtpool= libtpool
|
|
.endif
|
|
.endif
|
|
|
|
SUBDIR_DEPEND_libctf= libspl
|
|
SUBDIR_DEPEND_libdtrace= libctf
|
|
SUBDIR_DEPEND_libtpool= libspl
|
|
SUBDIR_DEPEND_libuutil= libavl libspl
|
|
SUBDIR_DEPEND_libzfs_core= libnvpair
|
|
SUBDIR_DEPEND_libzfs= libavl libnvpair libumem libuutil libzfs_core libzutil
|
|
SUBDIR_DEPEND_libzpool= libavl libnvpair libumem libicp
|
|
SUBDIR_DEPEND_libzutil= libavl libtpool
|
|
SUBDIR_DEPEND_libzfsbootenv= libzfs libnvpair
|
|
|
|
SUBDIR_PARALLEL=
|
|
|
|
.include <bsd.subdir.mk>
|