From 0a888bf1a580e6b7b1113dc7db0359484da36078 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sun, 26 Aug 2018 13:28:30 +0200 Subject: Add zstd compression support for squashfs modules This will provide compression ratios approaching those of xz, while achieving decompression rations similar to lzo (5 times faster than xz). We will need to have a zstd package in Slackware first, and then rebuild squashfs-tools to add zstd support. --- makemod | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'makemod') diff --git a/makemod b/makemod index ae030c9..38a5566 100755 --- a/makemod +++ b/makemod @@ -62,9 +62,10 @@ fi MODEXT=$(echo "$2" |rev |cut -d'.' -f1 |rev) case $MODEXT in - sxz) COMPR="xz" ;; - sgz) COMPR="gzip" ;; - xzm) COMPR="xz" ;; + sxz) COMPR=${COMPR:-"xz"} ;; + sgz) COMPR=${COMPR:-"gzip"} ;; + szs) COMPR=${COMPR:-"zstd"} ;; + xzm) COMPR=${COMPR:-"xz"} ;; # Porteus module extension and compressor *) echo "-- Unsupported module extension '$MODEXT'" ; exit 1 ;; esac -- cgit v1.2.3