boot: Add logic to enable booting from fallback option

The "fallback" extlinux config option allows us to set an alternative
default boot option for when it has been detected that the default is
failing. Implement the logic required to boot from this option when
desired.

Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Martyn Welch
2024-10-09 14:15:39 +01:00
committed by Tom Rini
parent d2faad3ff3
commit 8ba82a91b3
6 changed files with 27 additions and 7 deletions

View File

@@ -105,7 +105,7 @@ static int do_sysboot(struct cmd_tbl *cmdtp, int flag, int argc,
}
if (pxe_setup_ctx(&ctx, cmdtp, sysboot_read_file, &info, true,
filename, false)) {
filename, false, false)) {
printf("Out of memory\n");
return CMD_RET_FAILURE;
}