From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f48.google.com (mail-qv1-f48.google.com [209.85.219.48]) by mx.groups.io with SMTP id smtpd.web11.3828.1676492426481435020 for ; Wed, 15 Feb 2023 12:20:26 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=laWgi8vr; spf=pass (domain: gmail.com, ip: 209.85.219.48, mailfrom: gregory.lee.bartholomew@gmail.com) Received: by mail-qv1-f48.google.com with SMTP id i12so13972922qvs.2 for ; Wed, 15 Feb 2023 12:20:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent:mime-version:date:content-transfer-encoding:to:from :subject:message-id:from:to:cc:subject:date:message-id:reply-to; bh=ZeJdi1aPJk/HjO4seOA47VrZVQhB/iZL5+Mddw5WNkQ=; b=laWgi8vroYBE4KtcTR3MlpwAfMkghpRCHwEVZGfOAWHvaGHCV3A9jDRfnnjONMIsH2 rGLp2EcE0dlzxhfsCDl+AsUvaJ+7eCZEwk93vXgaL4i+oz6OuZ+5pi4vOr7V8Z8lssBs D2ULrO8f/+UOGEbX4DKMB5fW+wjOaBCfDYee11dhueL8l6lv29MSXcDmIAZWmiNnurGN 9IvdahMdIMc2W8EtKcvhckWa/CGm2zuos2Jt+Dhl8Snn2p2LKORzMrybXr/SL3aSlR5T FmD1h512DEmvA76IloqaC4ZgRcFMj2x7FWBupR/Yjyxjk7zxIbn4ds4I5qDLTXqKFoGq 8ixA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:mime-version:date:content-transfer-encoding:to:from :subject:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZeJdi1aPJk/HjO4seOA47VrZVQhB/iZL5+Mddw5WNkQ=; b=sumfLC7/Rj7fvUh7Pn6Oo8UWl4Nh2g/QvufwznAZgCCjA5o879RcGn1fQ/gpaX5eon rFSlo7X58JaaWmGCwM4NdpKAYhPs+FKwNIX0+WjAdlbrbSGD/FmQO+fPeOshdt3KYcrQ gtPBoHuq0SIv7sc/eI4WqFiEIzS3r193FQEjdaCnPCwPieG7YshlrrlaZL34nNFJVT1n s49SBf+eZikj6UJ2bWf8o2+DPw6jXhAGP7UWutvaOKo400/RzLb8DgBbzClrc3O3CIyI nhAOTdpgb+a8b8qNZfvfpOfv4vB+3Tla6cI8m48LvRb1zKSyn/T4y+Gz3BVncoSYVOzh 3tlw== X-Gm-Message-State: AO0yUKVPEZGeYxNcYnSpy4QcSiils/COW8qSTx6+LX47IZ5XC3WhkRmz ASKMHmmtm+DwTXxsqFHdZuNG1Y7mQuM= X-Google-Smtp-Source: AK7set+KoWjBP+e2coFKcXHkYn1E2aoOsZG3hqy51JWMKsxySUKCQKBzzuWcJYLaNmIPUQqfAY/5BQ== X-Received: by 2002:a05:6214:400b:b0:56e:b33c:d990 with SMTP id kd11-20020a056214400b00b0056eb33cd990mr5903296qvb.24.1676492425123; Wed, 15 Feb 2023 12:20:25 -0800 (PST) Return-Path: Received: from eb2027-01.cs.siue.edu (eb2027-01.cs.siue.edu. [146.163.150.61]) by smtp.gmail.com with ESMTPSA id a191-20020ae9e8c8000000b0072396cb73cdsm14461826qkg.13.2023.02.15.12.20.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 12:20:24 -0800 (PST) Message-ID: Subject: BUG: tianocore does not honor the bootorder From: gregory.lee.bartholomew@gmail.com To: devel@edk2.groups.io Date: Wed, 15 Feb 2023 14:20:23 -0600 MIME-Version: 1.0 User-Agent: Evolution 3.46.3 (3.46.3-1.fc37) Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 ent= ries and set the boot order. However, every time I boot the VM, it boots to entr= y 0004 "UEFI Misc Device" instead of the proper entry specified in the bootor= der. This is confusing a script that I have for managing multiple ESPs (the scri= pt needs to detect the current ESP and sync its contents to secondary/backup E= SPs). 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 ent= ries. Thanks. --=20 Gregory Lee Bartholomew PGP Key ID: 3B67510E