[PATCH] efi: loader: reduce warning about non-persistent EFI variables to notice
Ahmad Fatoum
a.fatoum at pengutronix.de
Tue Jan 27 07:36:38 PST 2026
When booting an EFI-stubbed kernel outside of an ESP, we always get:
WARNING: efi-loader: var-file: Cannot persist EFI variables without
system partition
A warning is arguably a bit harsh, because one still benefits from
keeping the MMU enabled and the other EFI runtime services, so bump to a
notice log level instead.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
efi/loader/efi_var_file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/efi/loader/efi_var_file.c b/efi/loader/efi_var_file.c
index 652354693ae7..e0dec999b779 100644
--- a/efi/loader/efi_var_file.c
+++ b/efi/loader/efi_var_file.c
@@ -59,7 +59,7 @@ efi_status_t efi_var_to_file(void)
dirfd = efiloader_esp_mount_dir();
if (dirfd < 0) {
if (!once) {
- pr_warn("Cannot persist EFI variables without system partition\n");
+ pr_notice("Cannot persist EFI variables without system partition\n");
once = true;
}
efiret = EFI_NO_MEDIA;
--
2.47.3
More information about the barebox
mailing list