wileylau/erofs

Image rebuilding (erofs -> ext4) doesn't work for small partitions

Closed this issue · 4 comments

I'm using latest verion of this tool and have an issue.
Small my_partitions like my_carrier and my_manifest failed to repack on mke2fs. All other bigger partitions rebuilding well.
Partitions size <1 MB (see the attached files below)
log:
sudo ./erofs.sh my_carrier.00011011.img my_carrier
[INFO] Mounting my_carrier...
[INFO] Rebuilding my_carrier as ext4 image...
ERROR:root:mke2fs 1.45.4 (23-Sep-2019)
my_carrier-ext4.img: Not enough space to build proposed filesystem while setting up superblock

[INFO] Done

my_partitions.zip

What firmware were you using?

What firmware were you using?

RUI 3.0 from realme 8 Pro. I get this firmware from ota.db and this is full OTA, isn't incremental package.

Try to mount my_carrier.img and check it's contexts.