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 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#100359): https://edk2.groups.io/g/devel/message/100359 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] -=-=-=-=-=-=-=-=-=-=-=-