AssertionError: Failed to execute: out/soong/host/linux-x86/bin/mke2fs

From JCRDoc

General Details

Device: Moto Z

Codename: griffin

Rom: carbonROM

Android Version: 10

Security Patch: October 2023

Error

AssertionError: Failed to execute: out/soong/host/linux-x86/bin/mke2fs -O ^has_journal -b 4096 -m 0 -t ext4 -I 256 -N 134 -U 7d1522e1-9dfa-5edb-a43e-98e3a4d20250 -E hash_seed=7d1522e1-9dfa-5edb-a43e-98e3a4d20250 /var/lib/jenkins/workspace/Los10/out/soong/.temp/tmpdeDVnM/content/apex_payload.img 115M

Solution

Remove metadata_csum_seed and orhpan_file from /etc/mke2fs.conf

Rerun the build after that.


Inspired by: Reddit