Print firmware information, not only secure boot status
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Rafal Kupiec 2022-10-17 22:35:27 +02:00
parent 71e8bb76de
commit 1b310e46f8
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -302,6 +302,14 @@ BlStartXtLoader(IN EFI_HANDLE ImageHandle,
BlEfiPrint(L"ERROR: Failed to initialize serial console\n");
}
/* Check SecureBoot status */
EfiSecureBoot = BlEfiGetSecureBootStatus();
/* Print firmware information */
BlDbgPrint(L"UEFI v%d.%d (%S 0x%08x), SecureBoot %S\n", EfiSystemTable->Hdr.Revision >> 16,
EfiSystemTable->Hdr.Revision & 0xFFFF, EfiSystemTable->FirmwareVendor, EfiSystemTable->FirmwareRevision,
EfiSecureBoot == 0 ? L"DISABLED" : EfiSecureBoot > 0 ? L"ENABLED" : L"SETUP");
/* Disable watchdog timer */
Status = EfiSystemTable->BootServices->SetWatchdogTimer(0, 0x10000, 0, NULL);
if(Status != STATUS_EFI_SUCCESS)
@ -310,10 +318,6 @@ BlStartXtLoader(IN EFI_HANDLE ImageHandle,
BlDbgPrint(L"WARNING: Failed to disable watchdog timer\n");
}
/* Check SecureBoot status */
EfiSecureBoot = BlEfiGetSecureBootStatus();
BlDbgPrint(L"SecureBoot status: %S\n", EfiSecureBoot == 0 ? L"DISABLED" : EfiSecureBoot > 0 ? L"ENABLED" : L"SETUP");
/* Register loader protocol */
Status = BlRegisterXtLoaderProtocol();
if(Status != STATUS_EFI_SUCCESS)