]> git.ipfire.org Git - thirdparty/mkosi.git/commit
compressor_command: Use gzip -n for reproducible output 4091/head
authorRobert Sturla <rsturla@redhat.com>
Thu, 25 Dec 2025 18:02:13 +0000 (18:02 +0000)
committerRobert Sturla <rsturla@redhat.com>
Thu, 25 Dec 2025 18:55:37 +0000 (18:55 +0000)
commit203da1e51ba8aff1c5bc6232d20b708f1cc72221
tree848e1892a7a532ada850e73d28a82775385d1703
parentec168925ad83e2a0347cecce2566eb8abe5b5504
compressor_command: Use gzip -n for reproducible output

The gzip format includes an MTIME field in its header that stores the
modification time of the original file. This causes compressed archives
to differ between builds even when the uncompressed content is identical.

Add the --no-name flag to gzip which suppresses storing the original
filename and timestamp, making gzip output reproducible.

Signed-off-by: Robert Sturla <rsturla@redhat.com>
mkosi/__init__.py