]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut: fixed "Add support for bzip2 and xz"
authorHarald Hoyer <harald@redhat.com>
Mon, 23 Aug 2010 10:06:28 +0000 (12:06 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 23 Aug 2010 10:06:28 +0000 (12:06 +0200)
s/xz/lzma/g and added manpage documentation

dracut
dracut.8.xml

diff --git a/dracut b/dracut
index b43c6476c7c4a5174ef76fae2016c857507d3f75..f4778aeb70162f1276af856e05d1f310acf16b87 100755 (executable)
--- 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" || \
index 7f28200636ef7d0f63c8f28d42da2499c39b3da7..8efced2cce80870522066c04527b199cf46c79c4 100644 (file)
@@ -357,6 +357,51 @@ target directory in the final initramfs.</para>
             <para>install the space separated list of files into the initramfs.</para>
           </listitem>
         </varlistentry>
+        <varlistentry>
+          <term>
+            <option>--gzip</option>
+          </term>
+          <listitem>
+            <para>Compress the generated initramfs using gzip.
+           This will be done by default, unless another compression option or --no-compress is passed.</para>
+          </listitem>
+        </varlistentry>
+        <varlistentry>
+          <term>
+            <option>--bzip2</option>
+          </term>
+          <listitem>
+            <para>Compress the generated initramfs using bzip2.
+           <warning><para>Make sure your kernel has bzip2 decompression support compiled in, otherwise you will not be able to boot.</para></warning>
+           </para>
+          </listitem>
+        </varlistentry>
+        <varlistentry>
+          <term>
+            <option>--lzma</option>
+          </term>
+          <listitem>
+            <para>Compress the generated initramfs using lzma.
+           <warning><para>Make sure your kernel has lzma decompression support compiled in, otherwise you will not be able to boot.</para></warning>
+           </para>
+          </listitem>
+        </varlistentry>
+        <varlistentry>
+          <term>
+            <option>--no-compress</option>
+          </term>
+          <listitem>
+            <para>Do not compress the generated initramfs. This will override any other compression options.</para>
+          </listitem>
+        </varlistentry>
+        <varlistentry>
+          <term>
+            <option></option>
+          </term>
+          <listitem>
+            <para></para>
+          </listitem>
+        </varlistentry>
       </variablelist>
     </refsect2>
   </refsect1>