public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Trevor Woerner <twoerner@gmail.com>
To: Antonin Godard <antonin.godard@bootlin.com>
Cc: openembedded-core@lists.openembedded.org,
	Mark Hatle <mark.hatle@kernel.crashing.org>
Subject: Re: [OE-core] [PATCH v8 1/1] wic: re-implement sector-size support
Date: Mon, 13 Apr 2026 10:31:33 -0400	[thread overview]
Message-ID: <adz-RZli86PVz34E@localhost.localdomain> (raw)
In-Reply-To: <DHRX8N5OL55X.3OKSM6LCFRKA1@bootlin.com>

On Mon 2026-04-13 @ 11:32:16 AM, Antonin Godard wrote:
> Hi,
> 
> On Thu Mar 26, 2026 at 1:11 AM CET, Trevor Woerner via lists.openembedded.org wrote:
> > The previous implementation had the following limitations:
> > - required the variable WIC_SECTOR_SIZE either be defined in a
> >   configuration file or be defined in a --vars file
> > - this means that every invocation of "wic ls", "wic cp", or "wic rm"
> >   needed this variable defined (config or --vars)
> > - required the user to create separate *wks files for every sector size
> >   they wanted to use
> > - required the user to specify the --mkfs-extraopts by hand to specify the
> >   correct sector size: e.g.
> > 	bootloader --ptable gpt
> >         part --fstype vfat --label emptyfat --mkfs-extraopts "-S 4096"
> > 	part --fstype ext4 --source rootfs --label rofs-a --mkfs-extraopts "-b 4096"
> > 	part --fstype ext4 --source rootfs --use-uuid --mkfs-extraopts "-b 4096"
> > - it would not be possible to generate images with different sector
> >   sizes in the same build since the configuration and *wks files would
> >   need to change and the build re-run for each size
> >
> > The new implementation handles the sector-size via a CLI argument, while
> > preserving the previously implemented variable definitions:
> > - the sector-size may now be provided on the cmdline to the "wic ls",
> >   "wic cp", "wic rm", and "wic create" commands: default = 512
> > - this means the configuration and/or --vars file does not need to be
> >   changed in order to perform those operations on images with different
> >   sector sizes
> > - support is provided implicitly for mkdosfs and ext[234] partitions
> > - the user no longer needs to know and supply the sector-size magic in
> >   --mkfs-extraopts (thereby clobbering the other defaults)
> >
> > As before, if the --sector-size command-line argument is not given,
> > allow the sector-size to be provided via the WIC_SECTOR_SIZE bitbake
> > variable. The user is warned that this behavior is deprecated. If both
> > are given, warn the user that the cmdline argument takes precedence.
> >
> > AI-Generated: codex/gpt-5.1-codex-max
> > Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> >
> > - restore environ test case, as it is still supported (but obsolete)
> > - revised commit message above
> >
> > Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
> > ---
> > changes in v8:
> > - Mark Hatle stepped in to help provide advice and updates
> > - add back the code and test to support/allow users to specify a
> >   sector-size in --mkfs-extraopts, this gives the user 3 places in which
> >   the sector-size can be specified:
> >   1. cmdline
> >   2. --mkfs-extraopts in *.wks files
> >   3. WIC_SECTOR_SIZE bitbake variable/--vars file
> 
> I've written a migration note here (sent on the docs list):
> https://lore.kernel.org/r/20260410-second-release-notes-6-0-v1-11-40213436c3ca@bootlin.com
> 
> Could you confirm that this is the right approach?

Yes, that should work. I was envisioning people writing their own
classes to call wic with the appropriate sector-size setting, but
WIC_CREATE_EXTRA_ARGS should work fine as well.

Thanks!


      reply	other threads:[~2026-04-13 14:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-26  0:11 [PATCH v8 0/1] re-implement sector-size [was: standalone wic] Trevor Woerner
2026-03-26  0:11 ` [PATCH v8 1/1] wic: re-implement sector-size support Trevor Woerner
2026-04-13  9:32   ` [OE-core] " Antonin Godard
2026-04-13 14:31     ` Trevor Woerner [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=adz-RZli86PVz34E@localhost.localdomain \
    --to=twoerner@gmail.com \
    --cc=antonin.godard@bootlin.com \
    --cc=mark.hatle@kernel.crashing.org \
    --cc=openembedded-core@lists.openembedded.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