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 <artem.bityutskiy@intel.com>
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)