Add post-install verification phase

Verify the SHA sum of all patched and extracted files after
a file system remount.

Bug: 18145574

Change-Id: I2f053d085543e10e39153a774542d37ee0a238bd
This commit is contained in:
Michael Runge
2014-10-28 19:24:19 -07:00
committed by Iliyan Malchev
parent a60fb49704
commit 63f01de818
2 changed files with 33 additions and 2 deletions

View File

@@ -323,6 +323,10 @@ class EdifyGenerator(object):
"""Append text verbatim to the output script."""
self.script.append(extra)
def Unmount(self, mount_point):
self.script.append('unmount("%s");' % (mount_point,))
self.mounts.remove(mount_point);
def UnmountAll(self):
for p in sorted(self.mounts):
self.script.append('unmount("%s");' % (p,))