]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix the bug that <continue> may not boot the first boot option but return back to...
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 1 Dec 2010 05:57:13 +0000 (05:57 +0000)
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 1 Dec 2010 05:57:13 +0000 (05:57 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11109 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c

index f5431551f57e8535401bff80fe5fa79e2d92e1cb..1cc383e3e51f7d0d679fb5f5dd94120a9e83e4ba 100644 (file)
@@ -143,6 +143,17 @@ BdsBootDeviceSelect (
   // Parse the boot order to get boot option\r
   //\r
   BdsLibBuildOptionFromVar (&BootLists, L"BootOrder");\r
+\r
+  //\r
+  // When we didn't have chance to build boot option variables in the first \r
+  // full configuration boot (e.g.: Reset in the first page or in Device Manager),\r
+  // we have no boot options in the following mini configuration boot.\r
+  // Give the last chance to enumerate the boot options.\r
+  //\r
+  if (IsListEmpty (&BootLists)) {\r
+    BdsLibEnumerateAllBootOption (&BootLists);\r
+  }\r
+\r
   Link = BootLists.ForwardLink;\r
 \r
   //\r