diff options
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 |
commit | 0a888bf1a580e6b7b1113dc7db0359484da36078 (patch) | |
tree | 479b61fafe2070af9c52c70a22711cedeeb5211f /makemod | |
parent | e103f0de308539e2bd0f53845d365e45fdf60ebc (diff) | |
download | liveslak-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-x | makemod | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |