From 545362f4627d43a3301cfeef283b30957e0e8c4b Mon Sep 17 00:00:00 2001 From: JP Abgrall Date: Mon, 24 Nov 2014 14:29:39 -0800 Subject: [PATCH] Remove journaling from read-only FS to save space The read-only partitions don't need journaling. Bug: 18430740 Change-Id: I93303aae534f02c6ae412323c9ebb0c0b7b35290 --- releasetools.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/releasetools.py b/releasetools.py index 4f1cba1..2239c51 100644 --- a/releasetools.py +++ b/releasetools.py @@ -15,6 +15,11 @@ import common import struct +def IncrementalOTA_InstallBegin(info): + info.script.Unmount("/system") + info.script.TunePartition("/system", "-O", "^has_journal") + info.script.Mount("/system") + def FullOTA_PostValidate(info): # run e2fsck info.script.AppendExtra('run_program("/sbin/e2fsck", "-fy", "/dev/block/platform/msm_sdcc.1/by-name/system");');