add erofs to non partition spanning fs

Bug:174816929
Test: sparse image size will be fixed after rebuilding erofs image
Change-Id: I43d7b2c61c57301935981f6f1282afb685cce331
Signed-off-by: Huang Jianan <huangjianan@oppo.com>
This commit is contained in:
Huang Jianan
2020-12-04 16:53:06 +08:00
committed by jianan huang
parent ad4dae71cf
commit 62d926e2fe

View File

@@ -417,7 +417,7 @@ def BuildImage(in_dir, prop_dict, out_file, target_out=None):
fs_type = prop_dict.get("fs_type", "") fs_type = prop_dict.get("fs_type", "")
fs_spans_partition = True fs_spans_partition = True
if fs_type.startswith("squash"): if fs_type.startswith("squash") or fs_type.startswith("erofs"):
fs_spans_partition = False fs_spans_partition = False
# Get a builder for creating an image that's to be verified by Verified Boot, # Get a builder for creating an image that's to be verified by Verified Boot,