diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2022-07-19 17:12:48 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-09-06 16:55:33 +0000 |
commit | 5eeb088ad64124229b32a5593fada578b935e207 (patch) | |
tree | f58e93ffd1eb3120e04e70da64cd66a20497f306 /OvmfPkg/Library/PlatformBootManagerLib | |
parent | db463e8e9da6f19becb336645dad3718de0743d3 (diff) | |
download | edk2-5eeb088ad64124229b32a5593fada578b935e207.tar.gz edk2-5eeb088ad64124229b32a5593fada578b935e207.tar.bz2 edk2-5eeb088ad64124229b32a5593fada578b935e207.zip |
OvmfPkg/QemuBootOrderLib: add StoreQemuBootOrder()
The function reads the boot order from qemu fw_cfg, translates it into
device paths and stores them in 'QemuBootOrderNNNN' variables. In case
there is no boot ordering configured the function will do nothing.
Use case: Allow applications loaded via 'qemu -kernel bootloader.efi'
obey the boot order.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'OvmfPkg/Library/PlatformBootManagerLib')
-rw-r--r-- | OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c index 51016a5548..98f6f07341 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c @@ -1695,6 +1695,11 @@ PlatformBootManagerAfterConsole ( PciAcpiInitialization ();
//
+ // Write qemu bootorder to efi variables
+ //
+ StoreQemuBootOrder ();
+
+ //
// Process QEMU's -kernel command line option
//
TryRunningQemuKernel ();
|