summaryrefslogtreecommitdiffstats
path: root/ArmPkg/Library
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@arm.com>2020-05-28 11:17:40 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-06-06 07:49:42 +0000
commit344f615df9c6b636a9125d477c5889ce821004cc (patch)
tree66d2d573f7f91cc16bfe019dcf7c6ee99e5fe3f3 /ArmPkg/Library
parent4ef72fe0222fe2333c6c2249ed614310fd17c193 (diff)
downloadedk2-344f615df9c6b636a9125d477c5889ce821004cc.tar.gz
edk2-344f615df9c6b636a9125d477c5889ce821004cc.tar.bz2
edk2-344f615df9c6b636a9125d477c5889ce821004cc.zip
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 <ard.biesheuvel@arm.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Leif Lindholm <leif@nuviainc.com>
Diffstat (limited to 'ArmPkg/Library')
-rw-r--r--ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c4
1 files changed, 1 insertions, 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);
}
/**