From: Masahisa Kojima Date: Mon, 12 Sep 2022 08:33:55 +0000 (+0900) Subject: eficonfig: scan media device in eficonfig startup X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=b5135a1e5b9ef80b0f49651f7b983d2b206aa9ea;p=u-boot.git eficonfig: scan media device in eficonfig startup In eficonfig startup, scan media devices and update the UEFI boot option. Signed-off-by: Masahisa Kojima --- diff --git a/cmd/eficonfig.c b/cmd/eficonfig.c index bbd6c3229e..99c83d1adf 100644 --- a/cmd/eficonfig.c +++ b/cmd/eficonfig.c @@ -2129,6 +2129,10 @@ static int do_eficonfig(struct cmd_tbl *cmdtp, int flag, int argc, char *const a if (ret != EFI_SUCCESS) return CMD_RET_FAILURE; + ret = eficonfig_generate_media_device_boot_option(); + if (ret != EFI_SUCCESS && ret != EFI_NOT_FOUND) + return ret; + while (1) { efi_menu = eficonfig_create_fixed_menu(maintenance_menu_items, ARRAY_SIZE(maintenance_menu_items));