From: Harald Hoyer Date: Mon, 23 Aug 2010 10:06:28 +0000 (+0200) Subject: dracut: fixed "Add support for bzip2 and xz" X-Git-Tag: 008~145 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eaa62cd5412a1e704fd7ecaa67ece423cd7f7705;p=thirdparty%2Fdracut.git dracut: fixed "Add support for bzip2 and xz" s/xz/lzma/g and added manpage documentation --- diff --git a/dracut b/dracut index b43c6476c..f4778aeb7 100755 --- a/dracut +++ b/dracut @@ -81,8 +81,8 @@ Creates initial ramdisk images for preloading modules --bzip2 Compress the generated initramfs using bzip2. Make sure your kernel has bzip2 decompression support compiled in, otherwise you will not be able to boot. - --xz Compress the generated initramfs using xz. - Make sure your kernel has xz support compiled in, + --lzma Compress the generated initramfs using lzma. + Make sure your kernel has lzma support compiled in, otherwise you will not be able to boot. --no-compress Do not compress the generated initramfs. This will override any other compression options. @@ -137,7 +137,7 @@ while (($# > 0)); do -h|--help) usage; exit 1 ;; -i|--include) include_src="$2"; include_target="$3"; shift 2;; --bzip2) [[ $compress != cat ]] && compress="bzip2 -9";; - --xz) [[ $compress != cat ]] && compress="xz -9";; + --lzma) [[ $compress != cat ]] && compress="lzma -9";; --no-compress) compress="cat";; --gzip) if [[ $compress != cat ]]; then type pigz > /dev/null 2>&1 && compress="pigz -9" || \ diff --git a/dracut.8.xml b/dracut.8.xml index 7f2820063..8efced2cc 100644 --- a/dracut.8.xml +++ b/dracut.8.xml @@ -357,6 +357,51 @@ target directory in the final initramfs. install the space separated list of files into the initramfs. + + + + + + Compress the generated initramfs using gzip. + This will be done by default, unless another compression option or --no-compress is passed. + + + + + + + + Compress the generated initramfs using bzip2. + Make sure your kernel has bzip2 decompression support compiled in, otherwise you will not be able to boot. + + + + + + + + + Compress the generated initramfs using lzma. + Make sure your kernel has lzma decompression support compiled in, otherwise you will not be able to boot. + + + + + + + + + Do not compress the generated initramfs. This will override any other compression options. + + + + + + + + + +