summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-08-04 10:52:38 -0700
committerTao Bao <tbao@google.com>2015-08-04 10:54:49 -0700
commit4a93a41742739790dd77f4f2bbd478ee8170a4c5 (patch)
tree84a89861204fb0c73e5b5d5d9dd5879505b109d4
parent698d0464a52ee2610c4590ef313fe587deedb081 (diff)
downloaddeb-4a93a41742739790dd77f4f2bbd478ee8170a4c5.tar.gz
RazorG: Reduce the journal size to zero.
Bug: 22940588 Change-Id: I4e04358d9a4649c3d8098e8e65a9862d9f45c2fe
-rw-r--r--releasetools.py7
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")