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

Ilias Apalodimas ilias.apalodimas at linaro.org
Mon Apr 20 08:00:51 CEST 2026


On Sat, 18 Apr 2026 at 20:58, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> 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.

For the series

Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>

>
> 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