From a911b237f306d2626d2ee6709ed75710aa1ea4be Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Fri, 15 Feb 2013 16:57:09 +0200 Subject: [PATCH] raw: allow partitions without a file-system Do not error out if a partition does not have a mount point and file-system type. We want MIC to create partitions without any format and without any mount-point. Change-Id: Ib50fecc2ffd501be8b24dac5d57324cf5de72b74 Signed-off-by: Artem Bityutskiy --- mic/imager/raw.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mic/imager/raw.py b/mic/imager/raw.py index 72a230a..b1d28be 100644 --- a/mic/imager/raw.py +++ b/mic/imager/raw.py @@ -160,9 +160,10 @@ class RawImageCreator(BaseImageCreator): raise CreatorError("Failed to create disks, no --ondisk " "specified in partition line of ks file") - if not parts[i].fstype: + if parts[i].mountpoint and not parts[i].fstype: raise CreatorError("Failed to create disks, no --fstype " - "specified in partition line of ks file") + "specified for partition with mountpoint " + "'%s' in the ks file") self._disk_names.append(disk_name) -- 2.7.4