mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
wic: partitionedfs: merged __format_disks and create
Private method __format_disks is called only from create method making the code less readable. Merged the code into one method. (From OE-Core rev: b76b1bd404487df38fd99bc0d0e6a59acb10c9d3) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
03648d3d04
commit
b8354df789
@@ -238,7 +238,11 @@ class Image():
|
||||
|
||||
return exec_native_cmd(cmd, self.native_sysroot)
|
||||
|
||||
def __format_disks(self):
|
||||
def create(self):
|
||||
for dev in self.disks:
|
||||
disk = self.disks[dev]
|
||||
disk['disk'].create()
|
||||
|
||||
self.layout_partitions()
|
||||
|
||||
for dev in self.disks:
|
||||
@@ -375,12 +379,3 @@ class Image():
|
||||
partimage = image_file + '.p%d' % part['num']
|
||||
os.rename(source, partimage)
|
||||
self.partimages.append(partimage)
|
||||
|
||||
def create(self):
|
||||
for dev in self.disks:
|
||||
disk = self.disks[dev]
|
||||
disk['disk'].create()
|
||||
|
||||
self.__format_disks()
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user