hammerhead: Reduce the /system journal size to zero.

Bug: 22940588
Change-Id: I4ea8852af68c3376a24124ff9cb921384655c155
diff --git a/releasetools.py b/releasetools.py
index 0c4174a..0340132 100644
--- a/releasetools.py
+++ b/releasetools.py
@@ -41,6 +41,13 @@
         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")