|
|
|
@ -157,14 +157,18 @@ class EdifyGenerator(object):
|
|
|
|
|
self.script.append(self.WordWrap(cmd))
|
|
|
|
|
|
|
|
|
|
def RunBackup(self, command, mount_point, dynamic=False):
|
|
|
|
|
if self.fstab:
|
|
|
|
|
p = self.fstab[mount_point]
|
|
|
|
|
systemEntry = self.fstab[mount_point]
|
|
|
|
|
if dynamic:
|
|
|
|
|
for p in ["vendor", "product", "system_ext"]:
|
|
|
|
|
fstabEntry = self.fstab.get("/"+p, None)
|
|
|
|
|
if fstabEntry:
|
|
|
|
|
self.script.append('map_partition("%s");' % (fstabEntry.device,))
|
|
|
|
|
|
|
|
|
|
self.script.append(('run_program("/tmp/install/bin/backuptool.sh", "%s", map_partition("%s"), "%s");' % (
|
|
|
|
|
command, p.device, p.fs_type)))
|
|
|
|
|
command, systemEntry.device, systemEntry.fs_type)))
|
|
|
|
|
else:
|
|
|
|
|
self.script.append(('run_program("/tmp/install/bin/backuptool.sh", "%s", "%s", "%s");' % (
|
|
|
|
|
command, p.device, p.fs_type)))
|
|
|
|
|
command, systemEntry.device, systemEntry.fs_type)))
|
|
|
|
|
|
|
|
|
|
def ShowProgress(self, frac, dur):
|
|
|
|
|
"""Update the progress bar, advancing it over 'frac' over the next
|
|
|
|
|