[PATCH v2 4/6] commands: boot: apply -o overrides to boot entries in the menu

Sascha Hauer s.hauer at pengutronix.de
Fri Nov 13 01:58:27 PST 2026


boot -m collects the boot entries and shows them in a menu, but merges
the overrides given with -o only into the entries it boots directly. An
entry selected from the menu is booted without them, so
boot -m -o bootm.image=... silently boots the entry's own image.

Merge the overrides into all entries before showing the menu.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 commands/boot.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/commands/boot.c b/commands/boot.c
index 81f392075d..8e8afdff9b 100644
--- a/commands/boot.c
+++ b/commands/boot.c
@@ -204,6 +204,9 @@ static int do_boot(int argc, char *argv[])
 			goto out;
 		}
 
+		bootentries_for_each_entry(entries, entry)
+			bootm_merge_overrides(&entry->overrides, &overrides);
+
 		bootsources_menu(entries, idx, timeout);
 	}
 

-- 
2.47.3




More information about the barebox mailing list