Page MenuHomeFreeBSD

stand/boot1.efi: Implement bootonce for ZFS
ClosedPublic

Authored by imp on Apr 4 2023, 6:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jan 27, 4:58 PM
Unknown Object (File)
Fri, Jan 24, 5:32 PM
Unknown Object (File)
Thu, Jan 16, 4:03 PM
Unknown Object (File)
Tue, Jan 14, 9:08 PM
Unknown Object (File)
Jan 6 2025, 1:00 AM
Unknown Object (File)
Oct 28 2024, 12:44 AM
Unknown Object (File)
Sep 17 2024, 5:18 AM
Unknown Object (File)
Sep 8 2024, 1:29 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 50757
Build 47648: arc lint + arc unit