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
This commit is contained in:
Jaegeuk Kim 2021-05-20 23:13:59 -07:00
parent e9e08e9e91
commit 028f6719f3

View file

@ -357,6 +357,7 @@ def BuildImageMkfs(in_dir, prop_dict, out_file, target_out, fs_config):
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))