From fe2ad36cbe13f9f304502d6b803828117593e0a9 Mon Sep 17 00:00:00 2001 From: Mate Kukri Date: Fri, 24 May 2024 11:25:58 +0100 Subject: Don't print full screen error dialog from handle_image() when called in_protocol This isn't desirable when GRUB has control of the screen, and would mess its content up. Signed-off-by: Mate Kukri --- pe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pe.c') diff --git a/pe.c b/pe.c index 1d8bdfa8..f7f6e5eb 100644 --- a/pe.c +++ b/pe.c @@ -646,7 +646,7 @@ handle_image (void *data, unsigned int datasize, sha1hash); if (EFI_ERROR(efi_status)) { - if (verbose) + if (verbose || in_protocol) console_print(L"Verification failed: %r\n", efi_status); else console_error(L"Verification failed", efi_status); -- cgit v1.2.3