fs_config: Fix generation for devices without vendor partition

If the "--all-partitions" argument is empty, the system fs_config should
be generated with all partitions emitted.

Fixes: 8453f02c (fs_config: Fix cases without vendor/oem partition)
Change-Id: I058cfd1c8e665b40757998e773c35e26465bf58a
Signed-off-by: dianlujitao <dianlujitao@lineageos.org>
This commit is contained in:
dianlujitao
2019-09-10 15:42:56 +08:00
parent 5242dc18bf
commit 5dcbe701cf

View File

@@ -1066,6 +1066,8 @@ class FSConfigGen(BaseGenerator):
path = fs_config.path path = fs_config.path
if self._partition == 'system': if self._partition == 'system':
if not self._all_partitions:
return True
for skip_partition in self._all_partitions.split(','): for skip_partition in self._all_partitions.split(','):
if path.startswith(skip_partition) or path.startswith( if path.startswith(skip_partition) or path.startswith(
'system/' + skip_partition): 'system/' + skip_partition):