diff options
| author | Renaud Métrich <rmetrich@redhat.com> | 2021-12-03 13:28:13 +0100 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-12-10 14:59:22 -0500 |
| commit | 0dd4c78fc0846b36a334068ed5e5495e1d3d5f9f (patch) | |
| tree | 76f615831617514414c910d93b05eb9ea309e228 | |
| parent | 4804ba077381dcd0288d98e3d08bc87ee77afad1 (diff) | |
| download | efi-boot-shim-0dd4c78fc0846b36a334068ed5e5495e1d3d5f9f.tar.gz efi-boot-shim-0dd4c78fc0846b36a334068ed5e5495e1d3d5f9f.zip | |
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>
| -rw-r--r-- | shim.c | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -429,8 +429,11 @@ BOOLEAN secure_mode (void) return FALSE; if (variable_is_secureboot() != 1) { - if (verbose && !in_protocol && first) - console_notify(L"Secure boot not enabled"); + if (verbose && !in_protocol && first) { + CHAR16 *title = L"Secure boot not enabled"; + CHAR16 *message = L"Press any key to continue"; + console_countdown(title, message, 5); + } first = 0; return FALSE; } @@ -442,8 +445,11 @@ BOOLEAN secure_mode (void) * to consider it. */ if (variable_is_setupmode(0) == 1) { - if (verbose && !in_protocol && first) - console_notify(L"Platform is in setup mode"); + if (verbose && !in_protocol && first) { + CHAR16 *title = L"Platform is in setup mode"; + CHAR16 *message = L"Press any key to continue"; + console_countdown(title, message, 5); + } first = 0; return FALSE; } |
