Skip to content

record-current-uefi-boot-entry

Record the current UEFI boot entry

Records the current UEFI network/PXE boot entry to the current-boot-entry param so it can be restored later in the machine lifecycle.

On Linux, uses efibootmgr to identify the active boot entry via BootCurrent, falling back to a heuristic regex match against current-boot-entry-heuristic-regex if BootCurrent is not available.

On Windows, uses bcdedit to enumerate all firmware boot entries and matches against current-boot-entry-heuristic-regex to find the network/PXE entry. The entry GUID is stored without curly braces to satisfy the string param type.

Objects that Reference record-current-uefi-boot-entry

Objects used by record-current-uefi-boot-entry