Update deapexer call to explictly use blkid

To support erofs apex extract via deapexer, we need blkid to tell the filesystem type of underlying payload image. If it is ext4, debugfs_static will be used, if it is erofs, then we should use fsck.erofs. Thus we now need explicit blkid input.

Also, remove dependency on fsck.erofs for other deapexer calls. Only extract deapexer call needs blkid and fsck.erofs.

BUG: b/255963179, b/240288941
Change-Id: I8cea0f2def664f9cabf8b14c9a7ecc47bbddfbdd
This commit is contained in:
Dennis Shen
2022-11-07 21:37:06 +00:00
parent 56a6905d86
commit a8d1143beb
2 changed files with 14 additions and 16 deletions

View File

@@ -164,6 +164,10 @@ def MergeDexopt(temp_dir, output_target_files_dir):
'deapexer',
'--debugfs_path',
'debugfs_static',
'--blkid_path',
'blkid',
'--fsckerofs_path',
'fsck.erofs',
'extract',
apex,
apex_extract_dir,