summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-08-05 05:42:01 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-08-05 05:42:01 +0000
commitf08215219732849e16a05f374aec72d7811589ec (patch)
tree84a89861204fb0c73e5b5d5d9dd5879505b109d4
parent698d0464a52ee2610c4590ef313fe587deedb081 (diff)
parent4a93a41742739790dd77f4f2bbd478ee8170a4c5 (diff)
downloaddeb-f08215219732849e16a05f374aec72d7811589ec.tar.gz
Merge "RazorG: Reduce the journal size to zero."android-m-preview-2
-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")