mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 23:39:40 +01:00
wic: Remove Mount object
It doesn't do anything we need, so remove it and fix up callers/base classes. (From OE-Core rev: fb2a162d8756ab69c9c29a0715b033f18620341d) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
d74e7d3fa6
commit
bd0dd4489e
@@ -112,19 +112,3 @@ class DiskImage(Disk):
|
||||
exec_cmd(dd_cmd)
|
||||
|
||||
self.device = self.image_file
|
||||
|
||||
|
||||
class Mount:
|
||||
"""A generic base class to deal with mounting things."""
|
||||
def __init__(self, mountdir):
|
||||
self.mountdir = mountdir
|
||||
|
||||
def cleanup(self):
|
||||
self.unmount()
|
||||
|
||||
def mount(self, options = None):
|
||||
pass
|
||||
|
||||
def unmount(self):
|
||||
pass
|
||||
|
||||
|
||||
@@ -32,9 +32,8 @@ MBR_OVERHEAD = 1
|
||||
# Size of a sector in bytes
|
||||
SECTOR_SIZE = 512
|
||||
|
||||
class PartitionedMount(Mount):
|
||||
class PartitionedMount:
|
||||
def __init__(self, mountdir):
|
||||
Mount.__init__(self, mountdir)
|
||||
self.disks = {}
|
||||
self.partitions = []
|
||||
self.mountOrder = []
|
||||
@@ -316,7 +315,6 @@ class PartitionedMount(Mount):
|
||||
self.unmountOrder.reverse()
|
||||
|
||||
def cleanup(self):
|
||||
Mount.cleanup(self)
|
||||
if self.disks:
|
||||
for dev in self.disks.keys():
|
||||
d = self.disks[dev]
|
||||
|
||||
Reference in New Issue
Block a user