MdeModulePkg/Library/UefiBootManagerLib: Be more verbose about boot failure

Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
This commit is contained in:
Michał Żygowski
2023-10-24 14:49:04 +02:00
committed by Sergii Dmytruk
parent 1f3b667fc3
commit 79bfb9d215
@@ -2012,9 +2012,17 @@ EfiBootManagerBoot (
SecureBoot = NULL;
GetEfiGlobalVariable2 (EFI_SECURE_BOOT_MODE_NAME, (VOID**)&SecureBoot, NULL);
if ((SecureBoot != NULL) && (*SecureBoot == SECURE_BOOT_MODE_ENABLE)) {
AsciiPrint ("SecureBoot is enabled.\n");
AsciiPrint ("Secure Boot is enabled.\n");
} else {
AsciiPrint ("SecureBoot is disabled.\n");
AsciiPrint ("Secure Boot is disabled.\n");
}
if ((BootOption->Status == EFI_ACCESS_DENIED) &&
(SecureBoot != NULL) &&
(*SecureBoot == SECURE_BOOT_MODE_ENABLE)) {
AsciiPrint (
"The image signature is invalid or missing!\n"
"Sign the image with a valid key or disable Secure Boot\n");
}
if (SecureBoot != NULL) {