summaryrefslogtreecommitdiffstats
path: root/makemod
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2018-08-26 13:28:30 +0200
committer Eric Hameleers <alien@slackware.com>2018-08-26 13:28:30 +0200
commit0a888bf1a580e6b7b1113dc7db0359484da36078 (patch)
tree479b61fafe2070af9c52c70a22711cedeeb5211f /makemod
parente103f0de308539e2bd0f53845d365e45fdf60ebc (diff)
downloadliveslak-0a888bf1a580e6b7b1113dc7db0359484da36078.tar.gz
liveslak-0a888bf1a580e6b7b1113dc7db0359484da36078.tar.xz
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.
Diffstat (limited to '')
-rwxr-xr-xmakemod7
1 files changed, 4 insertions, 3 deletions
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