diff options
Diffstat (limited to 'scripts/lib')
| -rw-r--r-- | scripts/lib/wic/partition.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index f3835339af..ac4c836bdb 100644 --- a/scripts/lib/wic/partition.py +++ b/scripts/lib/wic/partition.py | |||
| @@ -190,6 +190,10 @@ class Partition(): | |||
| 190 | if os.path.isfile(rootfs): | 190 | if os.path.isfile(rootfs): |
| 191 | os.remove(rootfs) | 191 | os.remove(rootfs) |
| 192 | 192 | ||
| 193 | if not self.fstype: | ||
| 194 | msger.error("File system for partition %s not specified in kickstart, " \ | ||
| 195 | "use --fstype option" % (self.mountpoint)) | ||
| 196 | |||
| 193 | for prefix in ("ext", "btrfs", "vfat", "squashfs"): | 197 | for prefix in ("ext", "btrfs", "vfat", "squashfs"): |
| 194 | if self.fstype.startswith(prefix): | 198 | if self.fstype.startswith(prefix): |
| 195 | method = getattr(self, "prepare_rootfs_" + prefix) | 199 | method = getattr(self, "prepare_rootfs_" + prefix) |
