summaryrefslogtreecommitdiff
path: root/scripts
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:12:47 +0000
commitf77efbe81a5d3d16ecb1872cf237bb3e56c63c39 (patch)
tree23c39388176213971105dafc3746fa30908ba194 /scripts
parent5d948f04823dedfa26a879aa6a5dc23de2bb9354 (diff)
downloadopenembedded-core-f77efbe81a5d3d16ecb1872cf237bb3e56c63c39.tar.gz
openembedded-core-f77efbe81a5d3d16ecb1872cf237bb3e56c63c39.tar.bz2
openembedded-core-f77efbe81a5d3d16ecb1872cf237bb3e56c63c39.zip
wic: remove unused API DirectImageCreator.get_disk_names
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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:
# partitions list from kickstart file
return self.ks.partitions
- def get_disk_names(self):
- """ Returns a list of physical target disk names (e.g., 'sdb') which
- will be created. """
-
- if self._disk_names:
- return self._disk_names
-
- #get partition info from ks handler
- parts = self._get_parts()
-
- for i in range(len(parts)):
- if parts[i].disk:
- disk_name = parts[i].disk
- else:
- raise CreatorError("Failed to create disks, no --ondisk "
- "specified in partition line of ks file")
-
- if parts[i].mountpoint and not parts[i].fstype:
- raise CreatorError("Failed to create disks, no --fstype "
- "specified for partition with mountpoint "
- "'%s' in the ks file")
-
- self._disk_names.append(disk_name)
-
- return self._disk_names
-
def _full_name(self, name, extention):
""" Construct full file name for a file we generate. """
return "%s-%s.%s" % (self.name, name, extention)