support pixz for compressing images faster

This commit is contained in:
parazyd 2017-04-12 16:59:13 +02:00
parent 78dbf5d090
commit 3c25285d5c
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 4 additions and 2 deletions

View File

@ -114,10 +114,12 @@ image_pack_dist() {
zerr
}
notice "compressing image with xz"
_xz=xz
[[ $(command -v pixz) ]] && _xz=pixz
notice "compressing image with $_xz"
silly
pushd $workdir
xz -zv ${image_name}.img
$_xz -zv ${image_name}.img
notice "generating sha256 for ${image_name}.img.xz"
sha256sum ${image_name}.img.xz > ${image_name}.img.xz.sha