Enable --readonly for system compression
This option is to reduce system partition size.
Bug: 171942852
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Idc849cfce33ac0badb2b9b7953bb821c46a24472
diff --git a/tools/releasetools/build_image.py b/tools/releasetools/build_image.py
index 13c5363..c1e43b2 100755
--- a/tools/releasetools/build_image.py
+++ b/tools/releasetools/build_image.py
@@ -357,6 +357,7 @@
if (needs_compress or prop_dict.get("system_fs_compress") == "true"):
build_command.append("--compression")
if (prop_dict.get("system_fs_compress") == "true"):
+ build_command.append("--readonly")
build_command.append("--sldc")
if (prop_dict.get("system_f2fs_sldc_flags") == None):
build_command.append(str(0))