]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/BdsDxe: Avoid overwriting PlatformRecovery####
authorRuiyu Ni <ruiyu.ni@intel.com>
Tue, 15 Nov 2016 10:02:32 +0000 (18:02 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Fri, 18 Nov 2016 02:42:04 +0000 (10:42 +0800)
commit0dc3fb06b270ee8b370c5b219ce590fcfe66d551
tree9dba67cde2a1097e7cfab8ad1abb0e772bc24cbd
parentde67c35c8a074500e1db86829e9aa164b7cf4b9d
MdeModulePkg/BdsDxe: Avoid overwriting PlatformRecovery####

Current implementation always creates PlatformRecovery0000
pointing to \EFI\BOOT\BOOT$(ARCH).efi but it may overwrite
PlatformRecovery#### created before (maybe by a DXE driver).

The patch only uses the smallest unused option number for
the \EFI\BOOT\BOOT$(ARCH).efi PlatformRecovery#### to avoid
overwriting already-created PlatformRecovery####.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jie Lin <jie.lin@intel.com>
Reviewed-by: Sunny Wang <sunnywang@hpe.com>
MdeModulePkg/Universal/BdsDxe/BdsEntry.c