From: Sascha Hauer <s.hauer@pengutronix.de>
To: BAREBOX <barebox@lists.infradead.org>
Subject: [PATCH v2 4/6] commands: boot: apply -o overrides to boot entries in the menu
Date: Fri, 13 Nov 2026 10:58:27 +0100 [thread overview]
Message-ID: <20261113-devboot-v2-4-f6853990006d@pengutronix.de> (raw)
In-Reply-To: <20261113-devboot-v2-0-f6853990006d@pengutronix.de>
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@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
next prev parent reply other threads:[~2026-11-13 10:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 9:58 [PATCH v2 0/6] boot: implement devboot in C Sascha Hauer
2026-11-13 9:58 ` [PATCH v2 1/6] boot: report the exit status of failing boot scripts Sascha Hauer
2026-11-13 9:58 ` [PATCH v2 2/6] hush: export source_script() Sascha Hauer
2026-11-13 9:58 ` [PATCH v2 3/6] boot: hand overrides on to nested boots and the bootm command Sascha Hauer
2026-11-13 9:58 ` Sascha Hauer [this message]
2026-11-13 9:58 ` [PATCH v2 5/6] boot: implement devboot in C Sascha Hauer
2026-11-13 9:58 ` [PATCH v2 6/6] sandbox: defconfig: enable boot overrides and devboot Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261113-devboot-v2-4-f6853990006d@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox