Page MenuHomeFreeBSD

stand/boot1.efi: Implement bootonce for ZFS

Authored by imp on Apr 4 2023, 6:13 PM.
Referenced Files
F78562142: D39412.diff
Tue, Mar 5, 3:08 AM
Unknown Object (File)
Tue, Feb 20, 11:02 PM
Unknown Object (File)
Dec 24 2023, 2:14 PM
Unknown Object (File)
Dec 20 2023, 8:26 AM
Unknown Object (File)
Dec 13 2023, 3:03 AM
Unknown Object (File)
Nov 22 2023, 11:49 PM
Unknown Object (File)
Nov 22 2023, 1:06 PM
Unknown Object (File)
Nov 12 2023, 12:26 PM



Implement ZFS bootonce protocol. We pass zfs-bootonce=t to the next boot
stage as a command line argument. Unlike zfsboot -> loader handoff in
the BIOS case, we don't use the OS_BOOTONCE_USED. This would require
modifications to loader.efi which would only server to make it more
complicated. Instead, use the command line parsing interface for the
boot1.efi -> loader.efi to pass in the zfs-bootonce kenv that will be
needed by rc.d/zfsbe to activate the BE if boot progresses that far.

Sponsored by: Netflix

Diff Detail

rG FreeBSD src repository
Lint Not Applicable
Tests Not Applicable