Page MenuHomeFreeBSD

Add --esp/-E argument to print the currently booted ESP
ClosedPublic

Authored by imp on Nov 17 2019, 4:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 3:22 AM
Unknown Object (File)
Tue, Nov 19, 3:21 AM
Unknown Object (File)
Tue, Nov 19, 3:21 AM
Unknown Object (File)
Mon, Nov 18, 1:11 PM
Unknown Object (File)
Fri, Nov 15, 5:38 PM
Unknown Object (File)
Oct 19 2024, 10:22 AM
Unknown Object (File)
Oct 3 2024, 4:14 AM
Unknown Object (File)
Sep 30 2024, 11:28 AM
Subscribers
None

Details

Summary

Add code to decode the BootCurrent and BootXXXX variable it points at
to deduce the ESP used to boot the system. By default, it prints the
path to that device. With --unix-path (-p) it will instead print the
current mount point for the ESP, if any (or an error). With
--device-path (-d) it wil print the UEFI device path for the ESP.

Note: This is the best guess based on the UEFI variables. If the ESP
is part of a gmirror, etc, that won't be reported. If by some weird
chance there was a complicated series of chain boots, this may not be
what you want. For setups that don't add layers on top of the raw
devices, it is accurate.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 27607
Build 25822: arc lint + arc unit