]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.c
OvmfPkg/QemuBootOrderLib: skip already matched / appended UEFI boot opts
[mirror_edk2.git] / OvmfPkg / Library / QemuBootOrderLib / QemuBootOrderLib.c
index 7c1f375beb20dbb9a28e7a395851b83b8f07b3ab..a9a62e9d40070fb7060561d7b26ee9868ae18844 100644 (file)
@@ -1861,7 +1861,8 @@ SetBootOrderFromQemu (
       // match translated OpenFirmware path against all active boot options\r
       //\r
       for (Idx = 0; Idx < ActiveCount; ++Idx) {\r
-        if (Match (\r
+        if (!ActiveOption[Idx].Appended &&\r
+            Match (\r
               Translated,\r
               TranslatedSize, // contains length, not size, in CHAR16's here\r
               ActiveOption[Idx].BootOption->FilePath\r