]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
eficonfig: scan media device in eficonfig startup
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Mon, 12 Sep 2022 08:33:55 +0000 (17:33 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 14 Sep 2022 06:43:32 +0000 (08:43 +0200)
In eficonfig startup, scan media devices and update
the UEFI boot option.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
cmd/eficonfig.c

index bbd6c3229e31440869e226708688df566b77893a..99c83d1adfbe98e418d61efe274609b0434cbfff 100644 (file)
@@ -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));