diff options
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/wic/partition.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index 5563f4448a..dce5d1485b 100644 --- a/scripts/lib/wic/partition.py +++ b/scripts/lib/wic/partition.py | |||
@@ -132,6 +132,8 @@ class Partition(): | |||
132 | self.update_fstab_in_rootfs = True | 132 | self.update_fstab_in_rootfs = True |
133 | 133 | ||
134 | if not self.source: | 134 | if not self.source: |
135 | if self.fstype == "none": | ||
136 | return | ||
135 | if not self.size and not self.fixed_size: | 137 | if not self.size and not self.fixed_size: |
136 | raise WicError("The %s partition has a size of zero. Please " | 138 | raise WicError("The %s partition has a size of zero. Please " |
137 | "specify a non-zero --size/--fixed-size for that " | 139 | "specify a non-zero --size/--fixed-size for that " |
@@ -404,6 +406,9 @@ class Partition(): | |||
404 | (extraopts, self.fsuuid, rootfs, rootfs_dir) | 406 | (extraopts, self.fsuuid, rootfs, rootfs_dir) |
405 | exec_native_cmd(erofs_cmd, native_sysroot, pseudo=pseudo) | 407 | exec_native_cmd(erofs_cmd, native_sysroot, pseudo=pseudo) |
406 | 408 | ||
409 | def prepare_empty_partition_none(self, rootfs, oe_builddir, native_sysroot): | ||
410 | pass | ||
411 | |||
407 | def prepare_empty_partition_ext(self, rootfs, oe_builddir, | 412 | def prepare_empty_partition_ext(self, rootfs, oe_builddir, |
408 | native_sysroot): | 413 | native_sysroot): |
409 | """ | 414 | """ |