Add support for pixz in zlibs/imaging.

This commit is contained in:
parazyd 2019-02-26 01:04:49 +01:00
parent c1c6fc8c06
commit 3eee81ee50
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 9 additions and 2 deletions

View File

@ -179,9 +179,16 @@ image_pack_dist() {
pushd $workdir
[[ -n "$nocompressimage" ]] || {
notice "compressing image with xz"
if which pixz > /dev/null ; then
xzcomp=$(which pixz)
else
xzcomp=$(which xz)
fi
notice "compressing image with $xzcomp"
silly
xz -zv "${image_name}.img"
$xzcomp "${image_name}.img"
}
mkdir -p "$R/dist"