From bc5eb90015c596483d0f7a5bae135e185902b73f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 22 Mar 2022 16:32:35 +0100 Subject: [PATCH] efivars: tweak debug log message in efi_get_secure_boot_mode() mention what we'll do as effect of the error we are seeing and eat up. --- src/basic/efivars.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/basic/efivars.c b/src/basic/efivars.c index 957e73a7bf..470369c0cb 100644 --- a/src/basic/efivars.c +++ b/src/basic/efivars.c @@ -334,7 +334,8 @@ SecureBootMode efi_get_secure_boot_mode(void) { int secure = read_flag(EFI_GLOBAL_VARIABLE(SecureBoot)); if (secure < 0) { if (secure != -ENOENT) - log_debug_errno(secure, "Error reading SecureBoot EFI variable: %m"); + log_debug_errno(secure, "Error reading SecureBoot EFI variable, assuming not in SecureBoot mode: %m"); + return (cache = SECURE_BOOT_UNSUPPORTED); } -- 2.25.1