From 8ba82a91b3aa615fb6148ecfa2af4e91a28659ae Mon Sep 17 00:00:00 2001 From: Martyn Welch Date: Wed, 9 Oct 2024 14:15:39 +0100 Subject: 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 Reviewed-by: Simon Glass --- cmd/sysboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/sysboot.c') diff --git a/cmd/sysboot.c b/cmd/sysboot.c index 0ea08fd7b53..8a060780cab 100644 --- a/cmd/sysboot.c +++ b/cmd/sysboot.c @@ -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; } -- cgit v1.2.3