Openembedded Core Discussions
 help / color / mirror / Atom feed
* [meta-oe][PATCH v2 0/1] wic: extend empty plugin with options to write zeros to partiton
@ 2023-11-22 10:47 Lukas Funke
  2023-11-22 10:47 ` [meta-oe][PATCH v2 1/1] " Lukas Funke
  0 siblings, 1 reply; 3+ messages in thread
From: Lukas Funke @ 2023-11-22 10:47 UTC (permalink / raw)
  To: openembedded-core; +Cc: Alexandre Belloni, Lukas Funke

From: Lukas Funke <lukas.funke@weidmueller.com>

Adds features to explicitly write zeros to the start of the
partition. This is useful to overwrite old content like
filesystem signatures which may be re-recognized otherwise.

The new features can be enabled with
'--soucreparams="[fill|size=<N>[S|s|K|k|M|G]][,][bs=<N>[S|s|K|k|M|G]]"'
Conflicting or missing options throw errors.

The features are:
- fill
  Fill the entire partition with zeros. Requires '--fixed-size' option
  to be set.
- size=<N>[S|s|K|k|M|G]
  Set the first N bytes of the partition to zero. Default unit is 'K'.
- bs=<N>[S|s|K|k|M|G]
  Write at most N bytes at a time during source file creation.
  Defaults to '1M'. Default unit is 'K'.

Changed in v2:
 - Added SoB
---

Malte Schmidt (1):
  wic: extend empty plugin with options to write zeros to partiton

 scripts/lib/wic/plugins/source/empty.py | 57 ++++++++++++++++++++++++-
 1 file changed, 56 insertions(+), 1 deletion(-)

-- 
2.30.2



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-23 17:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-22 10:47 [meta-oe][PATCH v2 0/1] wic: extend empty plugin with options to write zeros to partiton Lukas Funke
2023-11-22 10:47 ` [meta-oe][PATCH v2 1/1] " Lukas Funke
2023-11-23 17:46   ` [OE-core] " Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox