mirror of
https://github.com/Dasharo/edk2.git
synced 2026-03-06 14:47:27 -08:00
MdeModulePkg/Library/UefiBootManagerLib: Be more verbose about boot failure
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
This commit is contained in:
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) {
|
||||
|
||||
Reference in New Issue
Block a user