mirror of
https://git.yoctoproject.org/poky
synced 2026-09-20 03:49:32 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
e9bd1ed673
commit
d59196c3a8
@@ -185,32 +185,6 @@ class DirectImageCreator:
|
|||||||
# partitions list from kickstart file
|
# partitions list from kickstart file
|
||||||
return self.ks.partitions
|
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):
|
def _full_name(self, name, extention):
|
||||||
""" Construct full file name for a file we generate. """
|
""" Construct full file name for a file we generate. """
|
||||||
return "%s-%s.%s" % (self.name, name, extention)
|
return "%s-%s.%s" % (self.name, name, extention)
|
||||||
|
|||||||
Reference in New Issue
Block a user