iso_compression default zstd

This commit is contained in:
Bernhard Landauer 2019-11-17 10:23:44 +01:00
parent 731b5e454f
commit 2329b76681
4 changed files with 5 additions and 6 deletions

View file

@ -123,7 +123,7 @@ usage() {
echo ' -m Set SquashFS image mode to persistence'
echo ' -c Disable clean work dir'
echo ' -f Build full ISO (extra=true)'
echo ' -d <comp> Compression used for build ISO: xz, gzip, lzma, lzo, lz4'
echo ' -d <comp> Compression used for build ISO: xz, gzip, lzma, lzo, lz4, zstd'
echo " [default: ${iso_compression}]"
echo ' -x Build images only'
echo ' -z Generate iso only'

View file

@ -55,9 +55,8 @@
# the branding; default: auto
# dist_branding="MJRO"
# compression used, possible values xz (default, best compression), gzip, lzma, lzo, lz4
# lz4 is faster but worst compression, may be useful for locally testing isos
# iso_compression=xz
# compression used, possible values gzip, lzma, lzo, lz4, zstd (default)
# iso_compression=zstd
# unset defaults to given value
# kernel="linux53"

View file

@ -139,7 +139,7 @@ make_sfs() {
local highcomp="-b 256K -Xbcj x86"
[[ "${iso_compression}" != "xz" ]] && highcomp=""
[[ "${iso_compression}" != "zstd" ]] && highcomp=""
if [[ "${name}" == "mhwdfs" && ${used_kernel} < "4" ]]; then
mksfs_args+=(-comp lz4)

View file

@ -311,7 +311,7 @@ init_buildiso(){
[[ -z ${dist_branding} ]] && dist_branding="MJRO"
[[ -z ${iso_compression} ]] && iso_compression='xz'
[[ -z ${iso_compression} ]] && iso_compression='zstd'
iso_label=$(get_iso_label "${dist_branding}${dist_release//.}")