@@ -267,7 +267,7 @@ class Partition():
if self.fixed_size and self.size + self.extra_partition_space > self.fixed_size:
raise WicError("File system image of partition %s is "
"larger (%d kB + %d kB extra part space) than its allowed size %d kB" %
- (self.mountpoint, self.size, self.extra_partition_space, self.fixed_size))
+ (self.mountpoint or self.lineno, self.size, self.extra_partition_space, self.fixed_size))
def prepare_rootfs(self, cr_workdir, oe_builddir, rootfs_dir,
native_sysroot, real_rootfs = True, pseudo_dir = None):
Set the partition number when handling partition with mountpoint unset in order for the debug log line to correctly identify the partition. Fixes: wic.WicError: File system image of partition None is larger (70993 kB + 0 kB extra part space) than its allowed size 65536 kB Signed-off-by: Gaël PORTAY <gael.portay+rtone@gmail.com> --- src/wic/partition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)