fixup! support pixz for compressing images faster

This commit is contained in:
parazyd 2017-04-12 17:14:17 +02:00
parent 3c25285d5c
commit 5b791c9ef0
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 2 additions and 2 deletions

View File

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