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 2a916e077c..382afa44bc 100644 --- a/scripts/lib/wic/partition.py +++ b/scripts/lib/wic/partition.py | |||
| @@ -133,6 +133,8 @@ class Partition(): | |||
| 133 | self.update_fstab_in_rootfs = True | 133 | self.update_fstab_in_rootfs = True |
| 134 | 134 | ||
| 135 | if not self.source: | 135 | if not self.source: |
| 136 | if self.fstype == "none": | ||
| 137 | return | ||
| 136 | if not self.size and not self.fixed_size: | 138 | if not self.size and not self.fixed_size: |
| 137 | raise WicError("The %s partition has a size of zero. Please " | 139 | raise WicError("The %s partition has a size of zero. Please " |
| 138 | "specify a non-zero --size/--fixed-size for that " | 140 | "specify a non-zero --size/--fixed-size for that " |
| @@ -405,6 +407,9 @@ class Partition(): | |||
| 405 | (extraopts, self.fsuuid, rootfs, rootfs_dir) | 407 | (extraopts, self.fsuuid, rootfs, rootfs_dir) |
| 406 | exec_native_cmd(erofs_cmd, native_sysroot, pseudo=pseudo) | 408 | exec_native_cmd(erofs_cmd, native_sysroot, pseudo=pseudo) |
| 407 | 409 | ||
| 410 | def prepare_empty_partition_none(self, rootfs, oe_builddir, native_sysroot): | ||
| 411 | pass | ||
| 412 | |||
| 408 | def prepare_empty_partition_ext(self, rootfs, oe_builddir, | 413 | def prepare_empty_partition_ext(self, rootfs, oe_builddir, |
| 409 | native_sysroot): | 414 | native_sysroot): |
| 410 | """ | 415 | """ |
