<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hey all,<br></div>While waiting for my Salsa login approval I decided to introduce the changes that might be interesting for the reproducibility topic.<br></div>At the moment <b><a href="https://reproducible-builds.org/docs/system-images/" rel="nofollow" target="_blank">https://reproducible-builds.org/docs/system-images/</a></b> suggests you:<br>"Instead of using mkfs.ext, make_ext4fs can be used. make_ext4fs is creating the whole filesystem at once."<br><br></div>I think we can mention (after verification, see below please) that now we can also use mkfs.ext4 (mke2fs)<br> <a href="https://github.com/tytso/e2fsprogs/pull/164" target="_blank">https://github.com/tytso/e2fsprogs/pull/164</a> (although I am not sure that I covered all but the simple case here).<br><br></div>I'd like to also propose a few fixes for make_ext4fs as well, namely:<br></div>- Adding proper hard links support (try to use a directory with two files, say, perf and trace, that are hard links, and see that current make_ext4fs will create two files each having hard link of 1, thus doubling the occupied storage size)<br></div>- (Optional) different handling of lost+found directory (the current one though being correct, is not the best implementation:  questionable/redundant calloc() and memcpy() and memory leaks)<br></div>- (Optional) Add CFLAGS_EXTRA and LDFLAGS_EXTRA to facilitate the cross compiling (verified on ARM). You can easily cross compile it like this:<br><br>CC=arm-linux-gnueabihf-gcc EXTRA_CFLAGS=-I/home/xxxx/arm_build/zlib-1.2.13/ EXTRA_LDFLAGS=-L/home/xxxx/make_ext4fs_works/repo/arm_build/zlib-1.2.13/  make<br><a href="https://github.com/uglym8/make_ext4fs/tree/Fix-hardlinks-handling" target="_blank">https://github.com/uglym8/make_ext4fs/tree/Fix-hardlinks-handling</a><br><br></div>Best,<br></div>Alex.<br></div>