From 0dd4c78fc0846b36a334068ed5e5495e1d3d5f9f Mon Sep 17 00:00:00 2001 From: Renaud Métrich Date: Fri, 3 Dec 2021 13:28:13 +0100 Subject: shim: Don't stop forever at "Secure Boot not enabled" notification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Requesting a keystroke when Secure Boot is not enabled and verbosity is enabled is really annoying. Signed-off-by: Renaud Métrich --- shim.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'shim.c') diff --git a/shim.c b/shim.c index 66d91b5b..604c0db1 100644 --- a/shim.c +++ b/shim.c @@ -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; } -- cgit v1.2.3