Skip to content

Commit 0dd4c78

Browse files
rmetrichvathpela
authored andcommitted
shim: Don't stop forever at "Secure Boot not enabled" notification
Requesting a keystroke when Secure Boot is not enabled and verbosity is enabled is really annoying. Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
1 parent 4804ba0 commit 0dd4c78

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

shim.c

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,11 @@ BOOLEAN secure_mode (void)
429429
return FALSE;
430430

431431
if (variable_is_secureboot() != 1) {
432-
if (verbose && !in_protocol && first)
433-
console_notify(L"Secure boot not enabled");
432+
if (verbose && !in_protocol && first) {
433+
CHAR16 *title = L"Secure boot not enabled";
434+
CHAR16 *message = L"Press any key to continue";
435+
console_countdown(title, message, 5);
436+
}
434437
first = 0;
435438
return FALSE;
436439
}
@@ -442,8 +445,11 @@ BOOLEAN secure_mode (void)
442445
* to consider it.
443446
*/
444447
if (variable_is_setupmode(0) == 1) {
445-
if (verbose && !in_protocol && first)
446-
console_notify(L"Platform is in setup mode");
448+
if (verbose && !in_protocol && first) {
449+
CHAR16 *title = L"Platform is in setup mode";
450+
CHAR16 *message = L"Press any key to continue";
451+
console_countdown(title, message, 5);
452+
}
447453
first = 0;
448454
return FALSE;
449455
}

0 commit comments

Comments
 (0)