HomeFreeBSD

Save where we're booted from

Description

Save where we're booted from

Record the file path for boot1.efi as the UEFI environemnt variable
FreeBSDBootVarGUID:Boot1Path. Record the device this came from as
FreeBSDBootVarGUID:Boot1Dev. While later stages of the boot may be
able to guess these values by retrieving UEFIGlobal:BootCurrent and
groveling through the correct UEFIGlobal:BootXXXX, this provides
certanty in the face of behavior from any part of the boot loader
chain that might "guess" what to do next. These env variables are
volatile and will disappear on reboot.

Sponsored by: Netflix

Details

Provenance
impAuthored on Aug 31 2017, 5:32 PM
Differential Revision
D12156: Various boot1 enhancemnets
Parents
rGb048c3564d56: Exit rather than panic for most errors.
Branches
Unknown
Tags
Unknown