public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* BUG: tianocore does not honor the bootorder
@ 2023-02-15 20:20 gregory.lee.bartholomew
  2023-02-17 13:08 ` [edk2-devel] " Gerd Hoffmann
  0 siblings, 1 reply; 5+ messages in thread
From: gregory.lee.bartholomew @ 2023-02-15 20:20 UTC (permalink / raw)
  To: devel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-02-20 16:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-15 20:20 BUG: tianocore does not honor the bootorder gregory.lee.bartholomew
2023-02-17 13:08 ` [edk2-devel] " Gerd Hoffmann
2023-02-17 16:23   ` Gregory Lee Bartholomew
2023-02-20  7:10     ` Gerd Hoffmann
2023-02-20 16:44       ` Gregory Lee Bartholomew

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox