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.
This commit is contained in:
Lennart Poettering
2022-03-24 15:20:45 +01:00
parent 3e09ad57c6
commit bc5eb90015
+2 -1
View 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);
}