Skip to content

wic: extend empty plugin with options to write zeros to partiton

Lukas Funke openembedded-core 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v21 patch 1 replySuperseded
  3. v11 patch 1 replySuperseded

Changes in v3 from the cover letter

- Add testcase
- Fix interpretation of --fixed-size parameter

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2wic: extend empty plugin with options to write zeros to partitonscripts/lib/wic/plugins/source/empty.py+56 -10 replies
2/2selftest: wic: add test for zerorize option of empty pluginmeta/lib/oeqa/selftest/cases/wic.py+36 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] wic: extend empty plugin with options to write zeros to partiton

From: Lukas Funke <[email protected]>

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'.

Changes in v3:
- Add testcase
- Fix interpretation of --fixed-size parameter

Changed in v2:
- Added SoB

---

Lukas Funke (1):
selftest: wic: add test for zerorize option of empty plugin

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

 meta/lib/oeqa/selftest/cases/wic.py     | 36 ++++++++++++++++
 scripts/lib/wic/plugins/source/empty.py | 57 ++++++++++++++++++++++++-
 2 files changed, 92 insertions(+), 1 deletion(-)
Signature · 1 line
2.30.2