]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Use lbzip2 instead of bzip2 if available 66/head
authorVille Skyttä <ville.skytta@iki.fi>
Sun, 24 May 2015 19:29:20 +0000 (22:29 +0300)
committerVille Skyttä <ville.skytta@iki.fi>
Sun, 24 May 2015 19:29:20 +0000 (22:29 +0300)
dracut.sh

index 6215b36061f5f0dc8ec12bb5c494382c790501b3..1b80f3a7b41d0fe6bfa0c3576ce8f032d79274bc 100755 (executable)
--- 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";