diff options
| author | Tom Rini <trini@konsulko.com> | 2023-11-21 09:10:15 -0500 | 
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2023-11-21 09:10:15 -0500 | 
| commit | 9e53e45292ee2f1d9d2ccc59914b161bef9b10d7 (patch) | |
| tree | 7da5c6ed1f5986e20073ec4183480110d36933c6 /lib/efi_loader/efi_var_file.c | |
| parent | 24ca49b33af98d54d6cd2e845f071f6565345ffd (diff) | |
| parent | 64658007f3c61e32bf241f3048a23b1728774d57 (diff) | |
Merge tag 'efi-2024-01-rc4' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request efi-2024-01-rc4
Documentation
* Add HiSilicon board documentation to HTML docs
* Fix building with Sphinx 6.0
UEFI
* Increase default variable store size to 128K
* Check return value of efi_append_scrtm version
* Create shortened boot options in eficonfig command
Other
* Avoid incorrect error message in mkimage
Diffstat (limited to 'lib/efi_loader/efi_var_file.c')
| -rw-r--r-- | lib/efi_loader/efi_var_file.c | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/lib/efi_loader/efi_var_file.c b/lib/efi_loader/efi_var_file.c index 62e071bd834..d7dba050710 100644 --- a/lib/efi_loader/efi_var_file.c +++ b/lib/efi_loader/efi_var_file.c @@ -204,8 +204,11 @@ efi_status_t efi_var_restore(struct efi_var_file *buf, bool safe)   * File ubootefi.var is read from the EFI system partitions and the variables   * stored in the file are created.   * - * In case the file does not exist yet or a variable cannot be set EFI_SUCCESS - * is returned. + * On first boot the file ubootefi.var does not exist yet. This is why we must + * return EFI_SUCCESS in this case. + * + * If the variable file is corrupted, e.g. incorrect CRC32, we do not want to + * stop the boot process. We deliberately return EFI_SUCCESS in this case, too.   *   * Return:	status code   */ | 
