fix reproducibility

This commit is contained in:
Tobias Powalowski 2024-07-16 23:11:08 +02:00
parent 59d58ed38a
commit 5ad94eb6c3

View file

@ -259,6 +259,7 @@ _create_cpio() {
LC_ALL=C.UTF-8 bsdtar --null -cnf - -T - |
LC_ALL=C.UTF-8 bsdtar --null -cf - --format=newc @- >> "${_GENERATE_IMAGE}" || _abort "Image creation failed!"
fd . -u -e 'bz2' -e 'gz' -e 'xz' -e 'zst' --min-depth 1 -X rm
fd . -u --min-depth 1 -X touch -hcd "@0"
echo "Appending zstd compressed image..."
# use zstd only it has best compression and decompression
fd . -u --min-depth 1 -0 | sort -z |