Verified Commit 2351df56 authored by Bernhard M. Wiedemann's avatar Bernhard M. Wiedemann
Browse files

system_images: document the e2fsprogs way

because make_ext4fs seems not so well maintained,
this provides a nice alternative that should soon be available everywhere.
parent 3d06268a
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -38,6 +38,12 @@ to `$SOURCE_DATE_EPOCH`.

* https://git.lede-project.org/?p=project/make_ext4fs.git;a=commit;h=bd53eaafbc2a89a57b8adda38f53098a431fa8f4

It is also possible to produce bit-reproducible filesystems with recent mkfs.ext2 from e2fsprogs-1.47.1, thanks to [a SDE patch](https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/commit/?id=b6e2913061577ad981464e435026d71a48fd5caf) and added [support for tarball input](https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/commit/?id=7e3a4f0a33e9859af2bf44e8e1e278c8b10313cc) that lets tar normalize various metadata.

    export SOURCE_DATE_EPOCH=1234
    tar --sort=name --mtime=@$SOURCE_DATE_EPOCH --clamp-mtime --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime -cf /tmp/root.tar -C $rootdir .
    mkfs.ext2 -F -d /tmp/root.tar -E hash_seed=035cb65d-0a86-404a-bad7-19c88d05e400 -U 12341234-a4ec-4304-a70f-c549ea829da9 -L root $rootdev

ISO filesystem
==============