Remove journaling from read-only FS to save space
The read-only partitions don't need journaling.
Bug: 18430740
Change-Id: I93303aae534f02c6ae412323c9ebb0c0b7b35290
diff --git a/releasetools.py b/releasetools.py
index ae5692e..a9d12b4 100644
--- a/releasetools.py
+++ b/releasetools.py
@@ -25,6 +25,11 @@
else:
WriteBootloader(info, bootloader_img)
+def IncrementalOTA_InstallBegin(info):
+ info.script.Unmount("/system")
+ info.script.TunePartition("/system", "-O", "^has_journal")
+ info.script.Mount("/system")
+
def IncrementalOTA_VerifyEnd(info):
# try:
# target_radio_img = info.target_zip.read("RADIO/radio.img")