Merge branch 'fix-zstd-thread-option' into 'master'

Consider SOURCE_DATE_EPOCH option for zstd

See merge request kernel-team/initramfs-tools!57
This commit is contained in:
Ben Hutchings 2022-04-10 17:45:21 +00:00
commit 5a69a46ff0

View File

@ -205,7 +205,10 @@ gzip) # If we're doing a reproducible build, use gzip -n
fi
;;
lz4) compress="lz4 -9 -l" ;;
zstd) compress="zstd -q -9 -T0" ;;
zstd) compress="zstd -q -9"
# If we're not doing a reproducible build, enable multithreading
test -z "${SOURCE_DATE_EPOCH}" && compress="$compress -T0"
;;
xz) compress="xz --check=crc32"
# If we're not doing a reproducible build, enable multithreading
test -z "${SOURCE_DATE_EPOCH}" && compress="$compress --threads=0"