diff options
-rw-r--r-- | ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c b/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c index 3eaceb56f6..d4bfcd0c07 100644 --- a/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c +++ b/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c @@ -546,13 +546,12 @@ PlatformBootManagerAfterConsole ( //
TryRunningQemuKernel ();
- BdsLibEnumerateAllBootOption (BootOptionList);
- SetBootOrderFromQemu (BootOptionList);
//
- // The BootOrder variable may have changed, reload the in-memory list with
- // it.
+ // Enumerate all possible boot options, then filter and reorder them based on
+ // the QEMU configuration.
//
- BdsLibBuildOptionFromVar (BootOptionList, L"BootOrder");
+ EfiBootManagerRefreshAllBootOption ();
+ SetBootOrderFromQemu (NULL);
}
/**
|