summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMaciej Borzecki <maciej.borzecki@rndity.com>2016-11-10 13:18:34 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-11 11:46:41 +0000
commitdc4d1cfc4d6bd01432857448f66af5492cad7574 (patch)
tree8026a4e265ecdfd12504177d391283f2d00ac409 /scripts
parent4e869343952aef8748b40e538c14ad8b94221910 (diff)
downloadopenembedded-core-contrib-dc4d1cfc4d6bd01432857448f66af5492cad7574.tar.gz
openembedded-core-contrib-dc4d1cfc4d6bd01432857448f66af5492cad7574.tar.bz2
openembedded-core-contrib-dc4d1cfc4d6bd01432857448f66af5492cad7574.zip
wic: check that filesystem is specified for a rootfs partition
We explicitly check for --fstype if no source was provided for a partition. However, this was not the case for rootfs partitions. Make sure to raise an error if filesystem was left unspecified when preparing a rootfs partition image. (From OE-Core rev: b8c35fcad57810a87aa25ebeb533adf286eed565) Signed-off-by: Maciej Borzecki <maciej.borzecki@rndity.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/partition.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index 30bb05a249..3b3bd2d78f 100644
--- a/scripts/lib/wic/partition.py
+++ b/scripts/lib/wic/partition.py
@@ -190,6 +190,10 @@ class Partition():
if os.path.isfile(rootfs):
os.remove(rootfs)
+ if not self.fstype:
+ msger.error("File system for partition %s not specified in kickstart, " \
+ "use --fstype option" % (self.mountpoint))
+
for prefix in ("ext", "btrfs", "vfat", "squashfs"):
if self.fstype.startswith(prefix):
method = getattr(self, "prepare_rootfs_" + prefix)