Skip to contentSkip to conversation

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

PATCH Lukas Funke 1 participant 1 message Nov 22, 2023 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi,

Quoted 24 lines · Lukas Funke via lists.openembedded.org

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

Changed in v2:
- Added SoB
---

Quoted 6 lines

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(-)

I've seen that there is a misstake and the patch was sended with the 'meta-oe' prefix in the subject. This was not intendet and it belongs to the core layer only. I hope that you don't mind, otherwise I'll send a v3 version.

Quoted 10 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#191057): https://lists.openembedded.org/g/openembedded-core/message/191057
Mute This Topic: https://lists.openembedded.org/mt/102746528/7344993
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-