summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-01-24 15:43:52 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-31 14:38:31 +0000
commitd59196c3a822d0d1f9a37596addfb9bca84674bc (patch)
treedd1fbee94c5ead382a0ac16149d32ed4a03d4f98
parente9bd1ed67395fef82a5283e407480229857d448c (diff)
downloadpoky-d59196c3a822d0d1f9a37596addfb9bca84674bc.tar.gz
wic: remove unused API DirectImageCreator.get_disk_names
(From OE-Core rev: f77efbe81a5d3d16ecb1872cf237bb3e56c63c39) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--scripts/lib/wic/imager/direct.py26
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)