diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/mic/kickstart/custom_commands/partition.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lib/mic/kickstart/custom_commands/partition.py b/scripts/lib/mic/kickstart/custom_commands/partition.py index 4662bdd75c..06f29a9885 100644 --- a/scripts/lib/mic/kickstart/custom_commands/partition.py +++ b/scripts/lib/mic/kickstart/custom_commands/partition.py | |||
@@ -122,6 +122,8 @@ class Wic_PartData(Mic_PartData): | |||
122 | partition command parameters. | 122 | partition command parameters. |
123 | """ | 123 | """ |
124 | if not self.source: | 124 | if not self.source: |
125 | if not self.size: | ||
126 | msger.error("The %s partition has a size of zero. Please specify a non-zero --size for that partition." % self.mountpoint) | ||
125 | if self.fstype and self.fstype == "swap": | 127 | if self.fstype and self.fstype == "swap": |
126 | self.prepare_swap_partition(cr_workdir, oe_builddir, | 128 | self.prepare_swap_partition(cr_workdir, oe_builddir, |
127 | native_sysroot) | 129 | native_sysroot) |