diff options
author | Tao Bao <tbao@google.com> | 2015-08-04 10:52:38 -0700 |
---|---|---|
committer | Tao Bao <tbao@google.com> | 2015-08-04 11:03:53 -0700 |
commit | 68ead51cb99fdc282261e829f575e591babcee76 (patch) | |
tree | 4cbc9f9135021777a38df5777b79467fe1212730 | |
parent | 71d2ef5c0c10fb093432cea258c263467c885b49 (diff) | |
download | deb-68ead51cb99fdc282261e829f575e591babcee76.tar.gz |
RazorG: Reduce the journal size to zero.marshmallow-dev
Bug: 22940588
Change-Id: I5dfae62c4baa01a15144eb32328d77d62023f2e1
(cherry picked from commit 4a93a41742739790dd77f4f2bbd478ee8170a4c5)
-rw-r--r-- | releasetools.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/releasetools.py b/releasetools.py index ffb1baf..1714eaa 100644 --- a/releasetools.py +++ b/releasetools.py @@ -36,6 +36,13 @@ def IncrementalOTA_VerifyEnd(info): len(target_radio_img), common.sha1(target_radio_img).hexdigest())) +def IncrementalOTA_InstallBegin(info): + # Reduce the space taken by the journal. + info.script.Unmount("/system") + info.script.TunePartition("/system", "-O", "^has_journal") + info.script.Mount("/system") + + def IncrementalOTA_InstallEnd(info): try: target_bootloader_img = info.target_zip.read("RADIO/bootloader.img") |