[util-iso.sh] fix compression command

This commit is contained in:
Bernhard Landauer 2019-11-17 10:43:33 +01:00
parent 2329b76681
commit fee0b2cb18

View file

@ -137,15 +137,12 @@ make_sfs() {
mksfs_args+=(${sfs} -noappend)
local highcomp="-b 256K -Xbcj x86"
local highcomp
[[ "${iso_compression}" != "zstd" ]] && highcomp=""
[[ "${iso_compression}" == "xz" ]] && ${highcomp}="-b 256K -Xbcj x86")
mksfs_args+=(-comp ${iso_compression} ${highcomp})
if [[ "${name}" == "mhwdfs" && ${used_kernel} < "4" ]]; then
mksfs_args+=(-comp lz4)
else
mksfs_args+=(-comp ${iso_compression} ${highcomp})
fi
if ${verbose}; then
mksquashfs "${mksfs_args[@]}" >/dev/null
else