]> git.proxmox.com Git - mirror_edk2.git/commit
ArmVirtPkg/PlatformBootManagerLib: Postpone the shell registration
authorLaszlo Ersek <lersek@redhat.com>
Fri, 8 Jul 2016 09:20:32 +0000 (11:20 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Fri, 8 Jul 2016 11:11:31 +0000 (13:11 +0200)
commitefadd41590b4d5251dd7e254f68bd09b1bb0a4b0
tree5d17bc40e8699a91a4ad6e28d01946be7914fa28
parent694673c9108f22dd7da66e6ce2c118c929f110dd
ArmVirtPkg/PlatformBootManagerLib: Postpone the shell registration

This patch ports Gary's OvmfPkg commit 14b2ebc30c8b to ArmVirtPkg.

Turns out Gary's argument in 14b2ebc30c8b is not only valid for Xen. The
same situation arises with QEMU if:
- the user specifies no boot order via fw_cfg at all (so QemuBootOrderLib
  won't touch the boot order), and
- the varstore file has just been created from the varstore template.

In this case the user is dropped to the UEFI shell (because the shell is
registered earlier than all the auto-generated options), which is likely
not what the user wants.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Gary Lin <glin@suse.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c