Skip to content

reorder-uefi-boot-order

Make sure the UEFI boot order has current-boot-entry first.

Certain Linux distributions and Windows installations reorder the UEFI boot options to always boot locally first, which makes it harder for dr-provision to regain control of the machine via PXE boot to Sledgehammer.

This task rewrites the UEFI boot order to place the entry recorded in current-boot-entry first. On Linux, uses efibootmgr. On ESXi, uses the VMware bootorder utility. On Windows, uses bcdedit against the firmware boot manager ({fwbootmgr}) to permanently set the network/PXE entry first.

Objects that Reference reorder-uefi-boot-order

Objects used by reorder-uefi-boot-order