[Git][reproducible-builds/reproducible-website][master] system_images: document the e2fsprogs way
Bernhard M. Wiedemann (@bmwiedemann-guest)
gitlab at salsa.debian.org
Thu Nov 28 11:40:17 UTC 2024
Bernhard M. Wiedemann pushed to branch master at Reproducible Builds / reproducible-website
Commits:
2351df56 by Bernhard M. Wiedemann at 2024-11-28T12:39:41+01:00
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.
- - - - -
1 changed file:
- _docs/system_images.md
Changes:
=====================================
_docs/system_images.md
=====================================
@@ -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
==============
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/2351df56d4d66b6d16a01681e97b46fa238cc04f
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/2351df56d4d66b6d16a01681e97b46fa238cc04f
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20241128/d814a759/attachment.htm>
More information about the rb-commits
mailing list