aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahisa Kojima2022-09-12 17:33:55 +0900
committerHeinrich Schuchardt2022-09-14 08:43:32 +0200
commitb5135a1e5b9ef80b0f49651f7b983d2b206aa9ea (patch)
treeccfecdae6c88e961ad0bccefed28c2b8bfc9a8b0
parentc416f1c0bcab87179661b367e469e51f35bd1841 (diff)
eficonfig: scan media device in eficonfig startup
In eficonfig startup, scan media devices and update the UEFI boot option. Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
-rw-r--r--cmd/eficonfig.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/eficonfig.c b/cmd/eficonfig.c
index bbd6c3229e3..99c83d1adfb 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));