forked from mirrored-repos/manjaro-tools
[util-iso.sh] fix compression command
This commit is contained in:
parent
2329b76681
commit
fee0b2cb18
1 changed files with 5 additions and 8 deletions
|
@ -137,15 +137,12 @@ make_sfs() {
|
|||
|
||||
mksfs_args+=(${sfs} -noappend)
|
||||
|
||||
local highcomp="-b 256K -Xbcj x86"
|
||||
|
||||
[[ "${iso_compression}" != "zstd" ]] && highcomp=""
|
||||
local 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
|
||||
|
|
Loading…
Reference in a new issue