]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
wic: fix wrong attempt to create file system in upartitioned regions
authorMarkus Niebel <Markus.Niebel@ew.tq-group.com>
Fri, 18 Aug 2023 11:44:13 +0000 (13:44 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Aug 2023 10:34:05 +0000 (11:34 +0100)
commitdb771a4cd36bf291a8b68edfd905e03243f2c8b3
tree425191656bd83480e65c1d6ff2fad2f79530de58
parent62c464bb4e3ebb6b50864ede7b352651b2c81e3c
wic: fix wrong attempt to create file system in upartitioned regions

The kickstart parser defaults fstype to "vfat". This leads to an attempt
to create an empty file system even for regions configured with "--no-table"
if used without fstype when no --sourceparams given.

The fix tests for fstype "none" or no_table in Partition prepare method.
This will omit the file system creation an the potential error for small
region with --no-table option.

Signed-off-by: Markus Niebel <Markus.Niebel@ew.tq-group.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/partition.py