diff options
author | Austen Dicken <cvpcsm@gmail.com> | 2012-07-15 16:28:05 -0500 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-06 16:12:00 -0700 |
commit | b8d1c33dbbb8c81eb52605b079e7fe36360edfeb (patch) | |
tree | a35b9c0ca81b4e11db1caaa1169f1cc88b9718cd /tools/releasetools/edify_generator.py | |
parent | d36495babbe164933bc9c0756ef122fdbb053450 (diff) | |
download | build-b8d1c33dbbb8c81eb52605b079e7fe36360edfeb.zip build-b8d1c33dbbb8c81eb52605b079e7fe36360edfeb.tar.gz build-b8d1c33dbbb8c81eb52605b079e7fe36360edfeb.tar.bz2 |
update ota_from_target_files to handle mounting/unmounting for backupscript
backupscript should not be mounting/unmounting itself as it makes other
scripts have unexpected results (such as modelid_cfg, which expects /system
to be mounted)
instead have the ota script handle the mounting/unmounting
Change-Id: I94511f4147c624d975cb3ecbeaa8b0e98f63437c
Diffstat (limited to 'tools/releasetools/edify_generator.py')
-rw-r--r-- | tools/releasetools/edify_generator.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/releasetools/edify_generator.py b/tools/releasetools/edify_generator.py index 9bb1d01..9ccfded 100644 --- a/tools/releasetools/edify_generator.py +++ b/tools/releasetools/edify_generator.py @@ -201,6 +201,12 @@ class EdifyGenerator(object): p.mount_point, mount_flags)) self.mounts.add(p.mount_point) + def Unmount(self, mount_point): + """Unmount the partiiton with the given mount_point.""" + if mount_point in self.mounts: + self.mounts.remove(mount_point) + self.script.append('unmount("%s");' % (mount_point,)) + def UnpackPackageDir(self, src, dst): """Unpack a given directory from the OTA package into the given destination directory.""" |