Skip to content

Commit

Permalink
shim.c: set shutdown timemout to 90 seconds in error case
Browse files Browse the repository at this point in the history
This allows the user more time to read the error messages.

Signed-off-by: Thore Sommer <[email protected]>
  • Loading branch information
THS-on authored and vathpela committed Jan 15, 2025
1 parent 65c4e51 commit c9dccb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -1996,7 +1996,7 @@ efi_main (EFI_HANDLE passed_image_handle, EFI_SYSTEM_TABLE *passed_systab)
#if defined(ENABLE_SHIM_DEVEL)
devel_egress(COLD_RESET);
#else
usleep(5000000);
usleep(90000000); // 90 sec
RT->ResetSystem(EfiResetShutdown, EFI_SECURITY_VIOLATION,
0, NULL);
#endif
Expand Down

0 comments on commit c9dccb2

Please sign in to comment.