]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
wic: Introduce empty plugin to create unformatted empty partitions
authorDiego Sueiro <diego.sueiro@arm.com>
Tue, 8 Dec 2020 11:42:52 +0000 (11:42 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Dec 2020 00:06:20 +0000 (00:06 +0000)
commit4c6dfcc8d38b1f4fa0b4b889def060adff3bf9f4
treeccef57021f6b817958a0c8d63bdb56c683fb184e
parent289e6ff5cbd58afbca18112232342c120c3f5c7c
wic: Introduce empty plugin to create unformatted empty partitions

The empty wic plugin is used to create unformatted empty partitions for wic
images.

To use it you must pass "empty" as argument for the "--source" parameter in
the wks file. For example:
    part foo --source empty --ondisk sda --size="1024" --align 1024

Also adds a selftest for this plugin where the 'Fstype' column from 'wic
ls' should be empty for the second partition as listed in
test_empty_plugin.wks.

Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-selftest/wic/test_empty_plugin.wks [new file with mode: 0644]
meta/lib/oeqa/selftest/cases/wic.py
scripts/lib/wic/plugins/source/empty.py [new file with mode: 0644]