Skip to content

Commit c2a22f9

Browse files
committed
sbat.c: add user facing message when SBAT self check fails
This also increases the time until shutdown to 8 seconds. Signed-off-by: Thore Sommer <[email protected]>
1 parent 0287c6b commit c2a22f9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

shim.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1966,10 +1966,18 @@ efi_main (EFI_HANDLE passed_image_handle, EFI_SYSTEM_TABLE *passed_systab)
19661966
die:
19671967
console_print(L"Something has gone seriously wrong: %s: %r\n",
19681968
msgs[msg], efi_status);
1969+
1970+
/*
1971+
* Provide additional information when the SBAT self check fails
1972+
*/
1973+
if ( msg == SBAT_SELF_CHECK ) {
1974+
console_print(L"\nThe current shim has likely been revoked. "
1975+
"Please update to a newer shim version.\n");
1976+
}
19691977
#if defined(ENABLE_SHIM_DEVEL)
19701978
devel_egress(COLD_RESET);
19711979
#else
1972-
usleep(5000000);
1980+
usleep(8000000);
19731981
RT->ResetSystem(EfiResetShutdown, EFI_SECURITY_VIOLATION,
19741982
0, NULL);
19751983
#endif

0 commit comments

Comments
 (0)