From: Louis Rannou via B4 Relay <devnull+louis.rannou.non.se.com@kernel.org>
To: openembedded-core@lists.openembedded.org
Cc: Louis Rannou <louis.rannou@non.se.com>, pierre-loup.gosse@smile.fr
Subject: [PATCH 0/2] wic: extra-partitions: new variable to be combined with sourceparams
Date: Wed, 07 Jan 2026 11:40:49 +0100 [thread overview]
Message-ID: <20260107-extrafiles-v1-0-a4ddd07df231@non.se.com> (raw)
The current extra_partition plugin uses predictable variable names (the
configuration must predict the image partition label or uuid). This has two
inconveniences:
- an extra partition that has a specific label (or uuid) is doomed with the
associated variable. The partition cannot be configured unless the label
(or uuid) is changed.
- two partitions with same label from distincts .wks cannot have different
content.
The first commit increases the tests. It now tests several files can be included
and that the file system type can be specified. It also simplifies the 'wic ls'
command by removing unneeded pipes.
The second commit allows the new suffix _sourceparams_foo to be appended
to IMAGE_EXTRA_PARTITION_FILES. This variable will be preferred whenever
the .wks specifies a name in the --sourceparams option.
For example:
an image may define:
IMAGE_EXTRA_PARTITION_FILES_sourceparams_foo = "bar.conf"
and the .wks line have line:
part --source extra_partition --sourceparams "name=foo"
Signed-off-by: Louis Rannou <louis.rannou@non.se.com>
---
Louis Rannou (2):
oeqa/selftest: wic: improve extra-partition plugin tests
wic: extra-partition: introduce variable matching sourceparams
meta/lib/oeqa/selftest/cases/wic.py | 55 ++++++++++++++++-------
scripts/lib/wic/plugins/source/extra_partition.py | 24 +++++++---
2 files changed, 57 insertions(+), 22 deletions(-)
---
base-commit: 0ed4776533145c901611d7f4f942490e33481335
change-id: 20260107-extrafiles-ad9a25529b20
Best regards,
--
Louis Rannou <louis.rannou@non.se.com>
next reply other threads:[~2026-01-07 10:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-07 10:40 Louis Rannou via B4 Relay [this message]
2026-01-07 10:40 ` [PATCH 1/2] oeqa/selftest: wic: improve extra-partition plugin tests Louis Rannou via B4 Relay
2026-01-07 10:40 ` [PATCH 2/2] wic: extra-partition: introduce variable matching sourceparams Louis Rannou via B4 Relay
2026-01-07 16:39 ` Pierre-loup GOSSE
2026-01-08 9:00 ` Louis Rannou
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=20260107-extrafiles-v1-0-a4ddd07df231@non.se.com \
--to=devnull+louis.rannou.non.se.com@kernel.org \
--cc=louis.rannou@non.se.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=pierre-loup.gosse@smile.fr \
/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