mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH master 2/2] defaultenv: devboot: adopt same variable names as in /env/boot/net
Date: Wed, 28 Oct 2026 14:11:59 +0100	[thread overview]
Message-ID: <20261028131201.411183-2-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20261028131201.411183-1-a.fatoum@pengutronix.de>

The variable names for devboot follow the names used by
global.bootm. This is confusing though as they differ from what's used
for boot net.

To make it possible to use the same artifacts with boot net and devboot,
rename the artifacts that are looked up:

  user-image-hostname  -> user-linux-hostname
  user-initrd-hostname -> user-initramfs-hostname

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 Documentation/user/devboot.rst                   | 4 ++--
 defaultenv/defaultenv-2-devboot/devboot/defaults | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Documentation/user/devboot.rst b/Documentation/user/devboot.rst
index 5872973f5650..54bebb419b43 100644
--- a/Documentation/user/devboot.rst
+++ b/Documentation/user/devboot.rst
@@ -207,9 +207,9 @@ which the configuration script can source instead of spelling them out:
 
 ``/env/devboot/defaults``
   Sets ``devboot_image``, ``devboot_oftree`` and ``devboot_initrd`` to
-  ``${global.user}-image-${global.hostname}``,
+  ``${global.user}-linux-${global.hostname}``,
   ``${global.user}-oftree-${global.hostname}`` and
-  ``${global.user}-initrd-${global.hostname}`` respectively, but only
+  ``${global.user}-initramfs-${global.hostname}`` respectively, but only
   for those files that exist in the fetch directory. Symlink the build
   artifacts under these names into the TFTP directory and the script
   needs no further configuration.
diff --git a/defaultenv/defaultenv-2-devboot/devboot/defaults b/defaultenv/defaultenv-2-devboot/devboot/defaults
index 371051143268..b8a087b463b9 100644
--- a/defaultenv/defaultenv-2-devboot/devboot/defaults
+++ b/defaultenv/defaultenv-2-devboot/devboot/defaults
@@ -1,7 +1,7 @@
-# Use ${global.user}-{image,oftree,initrd}-${global.hostname} from the
+# Use ${global.user}-{linux,oftree,initramfs}-${global.hostname} from the
 # fetch directory as overrides
 
-devboot_default="${global.user}-image-${global.hostname}"
+devboot_default="${global.user}-linux-${global.hostname}"
 if [ -f "${devboot_default}" ]; then
 	devboot_image="${devboot_default}"
 fi
@@ -16,7 +16,7 @@ if [ -f "${devboot_default}" ]; then
 	devboot_oftree="${devboot_oftree}:${devboot_default}"
 fi
 
-devboot_default="${global.user}-initrd-${global.hostname}"
+devboot_default="${global.user}-initramfs-${global.hostname}"
 if [ -f "${devboot_default}" ]; then
 	devboot_initrd="${devboot_default}"
 fi
-- 
2.47.3




      reply	other threads:[~2026-10-28 13:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-28 13:11 [PATCH master 1/2] defaultenv: devboot: name module CPIO after hostname, not arch Ahmad Fatoum
2026-10-28 13:11 ` Ahmad Fatoum [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=20261028131201.411183-2-a.fatoum@pengutronix.de \
    --to=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