From: Markus Niebel Date: Fri, 18 Aug 2023 11:44:13 +0000 (+0200) Subject: wic: fix wrong attempt to create file system in upartitioned regions X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~74 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=db771a4cd36bf291a8b68edfd905e03243f2c8b3;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index bda4aef1b4e..f11c393df51 100644 --- a/scripts/lib/wic/partition.py +++ b/scripts/lib/wic/partition.py @@ -134,7 +134,7 @@ class Partition(): self.update_fstab_in_rootfs = True if not self.source: - if self.fstype == "none": + if self.fstype == "none" or self.no_table: return if not self.size and not self.fixed_size: raise WicError("The %s partition has a size of zero. Please "