On Mon, 2023-02-20 at 08:10 +0100, Gerd Hoffmann wrote: > On Fri, Feb 17, 2023 at 10:23:22AM -0600, Gregory Lee Bartholomew wrote: > > On Fri, 2023-02-17 at 14:08 +0100, Gerd Hoffmann wrote: > > > On Wed, Feb 15, 2023 at 02:20:23PM -0600, Gregory Lee Bartholomew wrote: > > > > 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). > > > > > > > Please fix tianocore to honor the bootorder instead of creating its own > > > > entries. > > > > > > ovmf orders the boot entries according to the qemu configuration > > > (bootindex property for devices). If you don't want that just remove > > > all bootindex properties from your qemu command line. > > > > > > take care, > > > Gerd > > > > > > > I don't believe I've set a bootindex. Below is the script that I'm using to > > start the qemu instances. > > OVMF shouldn't touch the order then. It will still create entries for > the devices it finds (on first boot). If you add more entries and put > them first (by setting BootOrder accordingly) OVMF should try booting > these first. > > take care, > Gerd >
It was my mistake. My qemu instance was referencing the wrong OVMF_VARS.fd. Tiano was automatically booting the system from that "Misc Device" entry because the installer-created entries were from an old run and were pointing to invalid partition UUIDs. I personally think it would be less confusing if that sort of automation were not done and instead a proper error were reported to the admin. But I guess I understand why that is being done. Sorry for the bogus bug report. gb -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#100371): https://edk2.groups.io/g/devel/message/100371 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] -=-=-=-=-=-=-=-=-=-=-=-