poky/scripts/lib/wic
Malte Schmidt 29b2bda786 wic: extend empty plugin with options to write zeros to partiton
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'.

(From OE-Core rev: d19d4529e7a2056caeb526fed980cc1df19a5f6e)

Signed-off-by: Malte Schmidt <malte.schmidt@weidmueller.com>
Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
..
canned-wks wic: Add console parameters to qemux86 canned-wks 2023-10-04 23:05:54 +01:00
plugins wic: extend empty plugin with options to write zeros to partiton 2023-12-06 22:55:49 +00:00
__init__.py wic: python2 -> python3 2019-06-30 22:40:52 +01:00
engine.py wic: use shutil.which 2021-11-21 11:05:02 +00:00
filemap.py filemap.py: enforce maximum of 4kb block size 2023-03-27 15:44:02 +01:00
help.py wic: fix a typo in help output 2023-10-10 12:56:39 +01:00
ksparser.py wic: Add gpt-hybrid partition layout 2023-09-02 11:47:50 +01:00
misc.py wic: add target tools to PATH when executing native commands 2022-08-02 11:29:59 +01:00
partition.py wic: Add gpt-hybrid partition layout 2023-09-02 11:47:50 +01:00
pluginbase.py scripts: Update to use exec_module() instead of load_module() 2022-01-05 17:18:16 +00:00