From: Lennart Poettering Date: Tue, 22 Mar 2022 15:32:35 +0000 (+0100) Subject: efivars: tweak debug log message in efi_get_secure_boot_mode() X-Git-Tag: v251-rc1~40^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bc5eb90015c596483d0f7a5bae135e185902b73f;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/basic/efivars.c b/src/basic/efivars.c index 957e73a7bf1..470369c0cbb 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); }