]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut: add --xz to compress with xz
authorHarald Hoyer <harald@redhat.com>
Tue, 15 Mar 2011 18:49:58 +0000 (19:49 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 15 Mar 2011 18:51:07 +0000 (19:51 +0100)
dracut

diff --git a/dracut b/dracut
index 4c3394c280a34b0031f33463bef86cc80d65727a..eba5088b4f99ea06d49d2adf911c36eec23be50a 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -201,7 +201,8 @@ while (($# > 0)); do
         -h|--help)     usage; exit 1 ;;
         -i|--include)  push include_src "$2"; push include_target "$3"; shift 2;;
         --bzip2)       [[ $compress != cat ]] && compress="bzip2 -9";;
-        --lzma)          [[ $compress != cat ]] && compress="lzma -9";;
+        --lzma)        [[ $compress != cat ]] && compress="lzma -9";;
+        --xz)          [[ $compress != cat ]] && compress="xz -9";;
         --no-compress) compress="cat";;
         --gzip)        if [[ $compress != cat ]]; then
             type pigz > /dev/null 2>&1 && compress="pigz -9" || \