The EXT4 FS driver gets unhappy if you attempt to write a file without a '/' prefix. Adjust the EFI_VAR_FILE_NAME string to be the full path to the file.
Signed-off-by: Caleb Connolly <[email protected]> --- include/efi_variable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/efi_variable.h b/include/efi_variable.h index 4065cf45ecaf..83fbca93b6bd 100644 --- a/include/efi_variable.h +++ b/include/efi_variable.h @@ -91,9 +91,9 @@ efi_status_t efi_query_variable_info_int(u32 attributes, u64 *maximum_variable_storage_size, u64 *remaining_variable_storage_size, u64 *maximum_variable_size); -#define EFI_VAR_FILE_NAME "ubootefi.var" +#define EFI_VAR_FILE_NAME "/ubootefi.var" #define EFI_VAR_BUF_SIZE CONFIG_EFI_VAR_BUF_SIZE /* -- 2.48.1

