]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
efivars: tweak debug log message in efi_get_secure_boot_mode()
authorLennart Poettering <lennart@poettering.net>
Tue, 22 Mar 2022 15:32:35 +0000 (16:32 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 24 Mar 2022 14:20:45 +0000 (15:20 +0100)
mention what we'll do as effect of the error we are seeing and eat up.

src/basic/efivars.c

index 957e73a7bf11a4b00484c66ee822dc55f461821a..470369c0cbbb008ab93257963ec69d40e8b8dfc9 100644 (file)
@@ -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);
         }