Revise partition size for system_other.img

system_other may be dynamic partition.
Do not fix its partition size as system's.

Bug: 220258352
Change-Id: Iacd14769ec14f43e3871d3c50a6627e6471284b1
This commit is contained in:
Po Hu
2022-02-18 09:10:22 +00:00
parent 52f1acbd93
commit 1c48b59aa1

View File

@@ -705,7 +705,7 @@ def ImagePropFromGlobalDict(glob_dict, mount_point):
if mount_point not in allowed_partitions:
continue
if mount_point == "system_other":
if (mount_point == "system_other") and (dest_prop != "partition_size"):
# Propagate system properties to system_other. They'll get overridden
# after as needed.
copy_prop(src_prop.format("system"), dest_prop)