[PATCH 0/2] efi_loader: centralize messaging for efi_init_obj_list

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sat Apr 18 19:58:12 CEST 2026


If efi_init_obj_list() fails we cannot use the UEFI sub-system.

* Instead of having messages for this everywhere write an error message
  in efi_init_obj_list().
* Always use (ret =! EFI_SUCCESS) when checking the return value of
  efi_init_obj_list().
* Remove the return code from the error message as it does not help
  users to understand which initialization went wrong.

In do_bootefi() move the check to the start of the function.

Heinrich Schuchardt (2):
  cmd/bootefi: move efi_init_obj_list() to the start of do_bootefi
  efi_loader: centralize messaging for efi_init_obj_list

 boot/bootmeth_efi_mgr.c      |  4 ++--
 cmd/bootefi.c                | 13 +++++--------
 cmd/bootmenu.c               |  6 +-----
 cmd/eficonfig.c              |  6 +-----
 cmd/efidebug.c               |  5 +----
 cmd/nvedit_efi.c             | 10 ++--------
 lib/efi_loader/efi_bootbin.c |  5 +----
 lib/efi_loader/efi_bootmgr.c |  5 +----
 lib/efi_loader/efi_setup.c   |  2 ++
 9 files changed, 16 insertions(+), 40 deletions(-)

-- 
2.53.0



More information about the U-Boot mailing list