summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMate Kukri <mate.kukri@canonical.com>2024-05-24 11:25:58 +0100
committerPeter Jones <pjones@redhat.com>2025-02-11 10:43:37 -0500
commitfe2ad36cbe13f9f304502d6b803828117593e0a9 (patch)
tree1293d8585d6e0b2120bbced68d7c75ffa7a33c3e
parent5d172787d5fa7faafcaf5fe62ad36819bb51ba54 (diff)
downloadefi-boot-shim-fe2ad36cbe13f9f304502d6b803828117593e0a9.tar.gz
efi-boot-shim-fe2ad36cbe13f9f304502d6b803828117593e0a9.zip
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 <mate.kukri@canonical.com>
-rw-r--r--pe.c2
1 files changed, 1 insertions, 1 deletions
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);