mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>,
	 BAREBOX <barebox@lists.infradead.org>
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH v2 9/9] Documentation: migration-guides: describe reverting boot globalvars
Date: Fri, 13 Nov 2026 08:20:44 +0100	[thread overview]
Message-ID: <20261113-boot-globalvar-stack-v2-9-14c0f0a0986e@pengutronix.de> (raw)
In-Reply-To: <20261113-boot-globalvar-stack-v2-0-14c0f0a0986e@pengutronix.de>

Describe that the boot related globalvars are now reverted after
booting, that the .dyn infix is no longer necessary, that values set in
global.linux.bootargs.dyn.* before calling boot are now kept and that
the order of the Kernel command line options generated by the default
environment boot scripts may change.

Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 .../migration-master/boot-globalvar-scope.rst         | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/Documentation/migration-guides/migration-master/boot-globalvar-scope.rst b/Documentation/migration-guides/migration-master/boot-globalvar-scope.rst
new file mode 100644
index 0000000000..92428ae1e0
--- /dev/null
+++ b/Documentation/migration-guides/migration-master/boot-globalvar-scope.rst
@@ -0,0 +1,19 @@
+Boot related globalvars are reverted after booting
+--------------------------------------------------
+
+``global.bootm.*``, ``global.linux.*``, ``global.of.*`` and
+``global.boot.watchdog_timeout`` are now snapshotted before each boot
+entry and each bootm and restored afterwards, so changes made while
+booting no longer leak into subsequent boot attempts.
+
+Boot entries therefore no longer need to put Kernel command line options
+into ``global.linux.bootargs.dyn.*``. The boot scripts shipped with the
+default environment have dropped the ``.dyn`` infix.
+
+``global.linux.bootargs.dyn.*`` variables are no longer cleared after a
+boot entry returns, but restored to their previous values. Values set
+in this namespace before calling ``boot`` are thus kept and passed to
+all boot entries instead of only the first one. Settings meant for all
+boot entries should be put into a different variable, e.g.
+``global.linux.bootargs.base``, as ``.dyn`` no longer has a special
+meaning.

-- 
2.47.3




      parent reply	other threads:[~2026-11-13  7:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-13  7:20 [PATCH v2 0/9] boot: revert boot related globalvars after booting Sascha Hauer
2026-11-13  7:20 ` [PATCH v2 1/9] globalvar: add scopes to snapshot and restore globalvars Sascha Hauer
2026-11-13  7:20 ` [PATCH v2 2/9] bootm: revert globalvar changes in bootm_boot_cleanup() Sascha Hauer
2026-11-13  7:20 ` [PATCH v2 3/9] boot: revert globalvar changes after each boot entry Sascha Hauer
2026-11-13  7:20 ` [PATCH v2 4/9] bootchooser: use a globalvar scope for its bootargs Sascha Hauer
2026-11-13  7:20 ` [PATCH v2 5/9] test: py: add test for reverting globalvars after boot Sascha Hauer
2026-11-13  7:20 ` [PATCH v2 6/9] bootargs: remove unused linux_bootargs_overwrite() Sascha Hauer
2026-11-13  7:20 ` [PATCH v2 7/9] of: add watchdog bootarg directly instead of via a globalvar Sascha Hauer
2026-11-13  7:20 ` [PATCH v2 8/9] defaultenv: don't use global.linux.bootargs.dyn.* in boot entries Sascha Hauer
2026-11-13  7:20 ` Sascha Hauer [this message]

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-boot-globalvar-stack-v2-9-14c0f0a0986e@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=a.fatoum@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