]> 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)
committerSteve Sakoman <steve@sakoman.com>
Tue, 19 Sep 2023 14:14:00 +0000 (04:14 -1000)
commitaf9f392a5e259b681077f25fa263965714a73a05
tree87119e121dd8c4f21175e8cbe545fe139292b5bb
parent29fe45fe8857f72705183a87b4e85a3723900a78
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>
(cherry picked from commit db771a4cd36bf291a8b68edfd905e03243f2c8b3)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
scripts/lib/wic/partition.py