All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Antonin Godard" <antonin.godard@bootlin.com>
To: <twoerner@gmail.com>, <openembedded-core@lists.openembedded.org>
Cc: "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 11:32:16 +0200	[thread overview]
Message-ID: <DHRX8N5OL55X.3OKSM6LCFRKA1@bootlin.com> (raw)
In-Reply-To: <20260326001150.203099-2-twoerner@gmail.com>

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?

Antonin


  reply	other threads:[~2026-04-13  9: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   ` Antonin Godard [this message]
2026-04-13 14:31     ` [OE-core] " Trevor Woerner

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=DHRX8N5OL55X.3OKSM6LCFRKA1@bootlin.com \
    --to=antonin.godard@bootlin.com \
    --cc=mark.hatle@kernel.crashing.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=twoerner@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.