\r
BdsLibEnumerateAllBootOption (&mBootOptionsList);\r
\r
+ //\r
+ // Group the legacy boot options for the same device type\r
+ //\r
+ GroupMultipleLegacyBootOption4SameType ();\r
+\r
+ InitializeListHead (&mBootOptionsList);\r
+ BdsLibBuildOptionFromVar (&mBootOptionsList, L"BootOrder");\r
+\r
HiiHandle = gBootManagerPrivate.HiiHandle;\r
\r
//\r
mKeyInput++;\r
\r
//\r
- // Don't display the boot option marked as LOAD_OPTION_HIDDEN\r
+ // Don't display the hidden/inactive boot option\r
//\r
- if ((Option->Attribute & LOAD_OPTION_HIDDEN) != 0) {\r
+ if (((Option->Attribute & LOAD_OPTION_HIDDEN) != 0) || ((Option->Attribute & LOAD_OPTION_ACTIVE) == 0)) {\r
continue;\r
}\r
\r