diff --git a/bin/ch-convert b/bin/ch-convert index 103310e6c..42d12dac0 100755 --- a/bin/ch-convert +++ b/bin/ch-convert @@ -116,8 +116,13 @@ cv_dir_squash () { # Exclude build cache metadata. 64kiB block size based on Shane’s # experiments. # shellcheck disable=SC2086 + q= + if mksquashfs --help 2>&1 | grep -qE '^-quiet'; then + q=-quiet + fi quiet mksquashfs "$1" "$2" $squash_xattr_arg -b 65536 -noappend -all-root \ - -pf "$pflist" -e "$1"/ch/git -e "$1"/ch/git.pickle + -pf "$pflist" -e "$1"/ch/git -e "$1"/ch/git.pickle $q + # Zero the archive’s internal modification time at bytes 8–11, 0-indexed # [1]. Newer SquashFS-Tools ≥4.3 have option “-fstime 0” to do this, but # CentOS 7 comes with 4.2. [1]: https://dr-emann.github.io/squashfs/