On Wed, 2023-11-22 at 11:47 +0100, Lukas Funke wrote: > From: Malte Schmidt <malte.schm...@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'. > > Signed-off-by: Malte Schmidt <malte.schm...@weidmueller.com> > Signed-off-by: Lukas Funke <lukas.fu...@weidmueller.com> > --- > scripts/lib/wic/plugins/source/empty.py | 57 ++++++++++++++++++++++++- > 1 file changed, 56 insertions(+), 1 deletion(-)
This is probably reasonable but it needs a testcase adding to wic's testsuite please. (run with oe-selftest -r wic) Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#191173): https://lists.openembedded.org/g/openembedded-core/message/191173 Mute This Topic: https://lists.openembedded.org/mt/102746529/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-