]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/PlatformBootManagerLib: hide UEFI Shell as a regular boot option
authorArd Biesheuvel <ard.biesheuvel@arm.com>
Thu, 28 May 2020 09:17:40 +0000 (11:17 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sat, 6 Jun 2020 07:49:42 +0000 (07:49 +0000)
Without ConnectAll() being called on the boot path, the UEFI shell will
be entered with no block devices or anything else connected, and so for
the novice user, this is not a very accommodating environment. Now that
we have made the UiApp the last resort on boot failure, and made the
UEFI Shell accessible directly via the 's' hotkey if you really need
it, let's hide it as an ordinary boot option.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c

index 85cb32f6d7cd9bf45bad3d15774cd00480405d97..1e9b736993d08c72b509ac7cef22ac250aec50fc 100644 (file)
@@ -777,9 +777,7 @@ PlatformBootManagerAfterConsole (
   //\r
   Key.ScanCode     = SCAN_NULL;\r
   Key.UnicodeChar  = L's';\r
-  PlatformRegisterFvBootOption (\r
-    &gUefiShellFileGuid, L"UEFI Shell", LOAD_OPTION_ACTIVE, &Key\r
-    );\r
+  PlatformRegisterFvBootOption (&gUefiShellFileGuid, L"UEFI Shell", 0, &Key);\r
 }\r
 \r
 /**\r