From: Ville Skyttä Date: Sun, 24 May 2015 19:29:20 +0000 (+0300) Subject: Use lbzip2 instead of bzip2 if available X-Git-Tag: 042~27^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F66%2Fhead;p=thirdparty%2Fdracut.git Use lbzip2 instead of bzip2 if available --- diff --git a/dracut.sh b/dracut.sh index 6215b3606..1b80f3a7b 100755 --- a/dracut.sh +++ b/dracut.sh @@ -853,7 +853,8 @@ fi # handle compression options. [[ $compress ]] || compress="gzip" case $compress in - bzip2) compress="bzip2 -9";; + bzip2) compress="bzip2 -9"; + command -v lbzip2 > /dev/null 2>&1 && compress="lbzip2 -9";; lzma) compress="lzma -9 -T0";; xz) compress="xz --check=crc32 --lzma2=dict=1MiB -T0";; gzip) compress="gzip -n -9";