From: niruiyu Date: Wed, 1 Dec 2010 05:57:13 +0000 (+0000) Subject: Fix the bug that may not boot the first boot option but return back to... X-Git-Tag: edk2-stable201903~15362 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=d860010877dd3229fe111d7d4e8f61b8a6b45b83;ds=sidebyside Fix the bug that may not boot the first boot option but return back to front page. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11109 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c b/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c index f5431551f5..1cc383e3e5 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c @@ -143,6 +143,17 @@ BdsBootDeviceSelect ( // Parse the boot order to get boot option // BdsLibBuildOptionFromVar (&BootLists, L"BootOrder"); + + // + // When we didn't have chance to build boot option variables in the first + // full configuration boot (e.g.: Reset in the first page or in Device Manager), + // we have no boot options in the following mini configuration boot. + // Give the last chance to enumerate the boot options. + // + if (IsListEmpty (&BootLists)) { + BdsLibEnumerateAllBootOption (&BootLists); + } + Link = BootLists.ForwardLink; //