summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorMarkus Niebel <Markus.Niebel@ew.tq-group.com>2023-08-18 13:44:13 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-08-21 11:34:12 +0100
commitc5013075f2ed17c01b34ad1192839109c23c21bc (patch)
tree162175ebc0cc2ac09bc6050f7ba5add8933c37aa /scripts/lib
parent3fac9a06a039313a46a2f5499602d1bb61927739 (diff)
downloadpoky-c5013075f2ed17c01b34ad1192839109c23c21bc.tar.gz
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. (From OE-Core rev: db771a4cd36bf291a8b68edfd905e03243f2c8b3) 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>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/wic/partition.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index bda4aef1b4..f11c393df5 100644
--- a/scripts/lib/wic/partition.py
+++ b/scripts/lib/wic/partition.py
@@ -134,7 +134,7 @@ class Partition():
134 self.update_fstab_in_rootfs = True 134 self.update_fstab_in_rootfs = True
135 135
136 if not self.source: 136 if not self.source:
137 if self.fstype == "none": 137 if self.fstype == "none" or self.no_table:
138 return 138 return
139 if not self.size and not self.fixed_size: 139 if not self.size and not self.fixed_size:
140 raise WicError("The %s partition has a size of zero. Please " 140 raise WicError("The %s partition has a size of zero. Please "