make flash-trs-rootfs: "e2fsck: Get a newer version of e2fsck!" (Ubuntu 22.04.2)
I am using a laptop running Ubuntu 22.04.2 to write the TRS root FS image to a USB stick for use on the RockPi4B. The image was build on an EC2 instance running the same OS version. On the laptop I get the following error:
trs-workspace$ make flash-trs-rootfs TRS_ROOTFS_IMG=/home/jerome/Downloads/trs-image-trs-qemuarm64.wic.bz2 DEV=/dev/sdb
sudo sh -c 'bzcat /home/jerome/Downloads/trs-image-trs-qemuarm64.wic.bz2 >"/dev/sdb"'
sudo sync "/dev/sdb"
sudo umount "/dev/sdb2" || :
umount: /dev/sdb2: not mounted.
sudo growpart /dev/sdb 2
CHANGED: partition=2 start=524328 old: size=4194304 end=4718632 new: size=249561015 end=250085343
sudo e2fsck -f "/dev/sdb2"
e2fsck 1.46.5 (30-Dec-2021)
/dev/sdb2 has unsupported feature(s): FEATURE_C12
e2fsck: Get a newer version of e2fsck!
rootfs: ********** WARNING: Filesystem still has errors **********
make: *** [Makefile:168: flash-trs-rootfs] Error 12
Upgrading e2fsprogs to the latest version (compiled from https://github.com/tytso/e2fsprogs) fixes the problem.