Skip to content

Commit ca278f1

Browse files
luigix25mergify[bot]
authored andcommitted
OvmfPkg/PlatformBootManagerCommonLib: Disable autoboot for EFI Shell
Setting the LOAD_OPTION_CATEGORY_APP flag for EFI Shell prevents the boot loader from using it as a fallback if all other entries fail to boot. With a boot manager menu available, it can be annoying to enter the EFI Shell directly, because from the menu, the user can try to boot again (e.g. temporary network problem) or enter the shell/firmware config only if necessary. Signed-off-by: Luigi Leonardi <[email protected]>
1 parent 4e19daa commit ca278f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OvmfPkg/Library/PlatformBootManagerLibLight/PlatformBm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ PlatformBootManagerAfterConsole (
10291029
PlatformRegisterFvBootOption (
10301030
&gUefiShellFileGuid,
10311031
L"EFI Internal Shell",
1032-
LOAD_OPTION_ACTIVE,
1032+
LOAD_OPTION_ACTIVE | LOAD_OPTION_CATEGORY_APP,
10331033
ShellEnabled
10341034
);
10351035

0 commit comments

Comments
 (0)