Page MenuHomeFreeBSD

stand/boot1.efi: Implement bootonce for ZFS
ClosedPublic

Authored by imp on Apr 4 2023, 6:13 PM.
Tags
None
Referenced Files
F81902251: D39412.id121346.diff
Sat, Nov 30, 12:41 PM
F81902148: D39412.id.diff
Sat, Nov 30, 11:54 AM
Unknown Object (File)
Fri, Nov 15, 9:17 PM
Unknown Object (File)
Fri, Nov 15, 9:16 PM
Unknown Object (File)
Sun, Nov 10, 2:27 AM
Unknown Object (File)
Sat, Nov 9, 5:35 AM
Unknown Object (File)
Sat, Nov 9, 4:28 AM
Unknown Object (File)
Fri, Nov 8, 6:57 AM

Details

Summary

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

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable