[PATCH v2 0/4] efi_loader: centralize messaging for efi_init_obj_list

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Tue Apr 21 00:03:17 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.

Correct return values of efi_bootmgr_run() and efi_binary_run_dp().

v2:
	Correct return values of efi_bootmgr_run() and efi_binary_run_dp().

Heinrich Schuchardt (4):
  cmd/bootefi: move efi_init_obj_list() to the start of do_bootefi
  efi_loader: correct return value of efi_bootmgr_run()
  efi_loader: correct efi_binary_run_dp() return value
  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 |  7 ++-----
 lib/efi_loader/efi_bootmgr.c |  7 ++-----
 lib/efi_loader/efi_setup.c   |  2 ++
 9 files changed, 18 insertions(+), 42 deletions(-)

-- 
2.53.0



More information about the U-Boot mailing list