]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
OvmfPkg/PlatformBootManagerLib: Postpone the shell registration
authorGary Lin <glin@suse.com>
Wed, 11 May 2016 08:40:49 +0000 (16:40 +0800)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 12 May 2016 08:25:15 +0000 (10:25 +0200)
commit14b2ebc30c8bc98f668fa78171b659e2cdc33aa5
tree52a0cc553269bdf3c6fba2277f68053e5b9679d0
parente117c894fdf1896fea5d37057832fed58d48b6ee
OvmfPkg/PlatformBootManagerLib: Postpone the shell registration

We currently register the shell before creating the boot options for
the block devices and the network devices, so the boot manager boots
into the internal shell if the user doesn't specify the boot order.
However, Xen doesn't support fw_cfg, so there is no way to change the
boot order with the external command, and the firmware will always
boot into the internal shell if the user doesn't interfere the boot
process.

This patch postpones the shell registration after MdeModulePkg/BDS
creates all the boot options for the block and network devices, so
that firmware will try to boot the block/network devices first.

Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c