
When we try to store EFI variables on a file, we need to use an ESP. if an ESP is not found, variables will change in memory, but U-Boot won't be able to restore them across reboots.
Adjust the error message so users can understand what's going on
Signed-off-by: Ilias Apalodimas ilias.apalodimas@linaro.org --- lib/efi_loader/efi_var_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/efi_loader/efi_var_file.c b/lib/efi_loader/efi_var_file.c index 413e1794e88c..5276740ffe7a 100644 --- a/lib/efi_loader/efi_var_file.c +++ b/lib/efi_loader/efi_var_file.c @@ -82,7 +82,7 @@ efi_status_t efi_var_to_file(void)
error: if (ret != EFI_SUCCESS) - log_err("Failed to persist EFI variables\n"); + log_err("ESP not found. UEFI variables won't persist reboots\n"); free(buf); return ret; #else