I have a script that uses Qemu to install a Linux OS to the supplied device. At the end of the install script, efibootmgr is called to create UEFI boot entries and set the boot order. However, every time I boot the VM, it boots to entry 0004 "UEFI Misc Device" instead of the proper entry specified in the bootorder. This is confusing a script that I have for managing multiple ESPs (the script needs to detect the current ESP and sync its contents to secondary/backup ESPs).
Below is the output from efibootmgr on one of my scripted installations. # efibootmgr BootCurrent: 0004 Timeout: 0 seconds BootOrder: 0002,0001,0000,0003,0004,0005,0006,0007,0008,0009,000A Boot0000* UiApp FvVol(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(462caa21- 7614-4503-836e-8ab6f4662331) Boot0001* boot@b HD(1,GPT,b0077ac5-be27-4b22-bdf1- e7256e4731de,0x800,0x200000)/File(\efi\systemd\systemd-bootx64.efi) Boot0002* boot@a HD(1,GPT,70d1956e-7522-47d4-8319- 49a96674ecf1,0x800,0x200000)/File(\efi\systemd\systemd-bootx64.efi) Boot0003* UEFI QEMU DVD-ROM QM00003 PciRoot(0x0)/Pci(0x1,0x1)/Ata(1,0,0){auto_created_boot_option} Boot0004* UEFI Misc Device PciRoot(0x0)/Pci(0x5,0x0){auto_created_boot_option} Boot0005* UEFI Misc Device 2 PciRoot(0x0)/Pci(0x6,0x0){auto_created_boot_option} Boot0006* UEFI PXEv4 (MAC:8232FE36D480) PciRoot(0x0)/Pci(0x3,0x0)/MAC(8232fe36d480,1)/IPv4(0.0.0.00.0.0.0,0,0){auto_created_boot_option} Boot0007* UEFI PXEv6 (MAC:8232FE36D480) PciRoot(0x0)/Pci(0x3,0x0)/MAC(8232fe36d480,1)/IPv6([::]:<->[::]:,0,0){auto_created_boot_option} Boot0008* UEFI HTTPv4 (MAC:8232FE36D480) PciRoot(0x0)/Pci(0x3,0x0)/MAC(8232fe36d480,1)/IPv4(0.0.0.00.0.0.0,0,0)/Uri(){auto_created_boot_option} Boot0009* UEFI HTTPv6 (MAC:8232FE36D480) PciRoot(0x0)/Pci(0x3,0x0)/MAC(8232fe36d480,1)/IPv6([::]:<->[::]:,0,0)/Uri(){auto_created_boot_option} Boot000A* EFI Internal Shell FvVol(7cb8bdc9-f8eb-4f34-aaea- 3ee4af6516a1)/FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1) Please fix tianocore to honor the bootorder instead of creating its own entries. Thanks. -- Gregory Lee Bartholomew PGP Key ID: 3B67510E -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#100292): https://edk2.groups.io/g/devel/message/100292 Mute This Topic: https://groups.io/mt/97012103/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-