From 344f615df9c6b636a9125d477c5889ce821004cc Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Thu, 28 May 2020 11:17:40 +0200 Subject: [PATCH] ArmPkg/PlatformBootManagerLib: hide UEFI Shell as a regular boot option 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 Reviewed-by: Laszlo Ersek Reviewed-by: Leif Lindholm --- ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c b/ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c index 85cb32f6d7..1e9b736993 100644 --- a/ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c +++ b/ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c @@ -777,9 +777,7 @@ PlatformBootManagerAfterConsole ( // Key.ScanCode = SCAN_NULL; Key.UnicodeChar = L's'; - PlatformRegisterFvBootOption ( - &gUefiShellFileGuid, L"UEFI Shell", LOAD_OPTION_ACTIVE, &Key - ); + PlatformRegisterFvBootOption (&gUefiShellFileGuid, L"UEFI Shell", 0, &Key); } /**