diff options
-rw-r--r-- | scripts/lib/wic/imager/direct.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/scripts/lib/wic/imager/direct.py b/scripts/lib/wic/imager/direct.py index 63f1fa1d39..6340a59a0a 100644 --- a/scripts/lib/wic/imager/direct.py +++ b/scripts/lib/wic/imager/direct.py | |||
@@ -185,32 +185,6 @@ class DirectImageCreator: | |||
185 | # partitions list from kickstart file | 185 | # partitions list from kickstart file |
186 | return self.ks.partitions | 186 | return self.ks.partitions |
187 | 187 | ||
188 | def get_disk_names(self): | ||
189 | """ Returns a list of physical target disk names (e.g., 'sdb') which | ||
190 | will be created. """ | ||
191 | |||
192 | if self._disk_names: | ||
193 | return self._disk_names | ||
194 | |||
195 | #get partition info from ks handler | ||
196 | parts = self._get_parts() | ||
197 | |||
198 | for i in range(len(parts)): | ||
199 | if parts[i].disk: | ||
200 | disk_name = parts[i].disk | ||
201 | else: | ||
202 | raise CreatorError("Failed to create disks, no --ondisk " | ||
203 | "specified in partition line of ks file") | ||
204 | |||
205 | if parts[i].mountpoint and not parts[i].fstype: | ||
206 | raise CreatorError("Failed to create disks, no --fstype " | ||
207 | "specified for partition with mountpoint " | ||
208 | "'%s' in the ks file") | ||
209 | |||
210 | self._disk_names.append(disk_name) | ||
211 | |||
212 | return self._disk_names | ||
213 | |||
214 | def _full_name(self, name, extention): | 188 | def _full_name(self, name, extention): |
215 | """ Construct full file name for a file we generate. """ | 189 | """ Construct full file name for a file we generate. """ |
216 | return "%s-%s.%s" % (self.name, name, extention) | 190 | return "%s-%s.%s" % (self.name, name, extention) |