Blame 0002-dracut.8-add-more-description-about-calling-dracut.patch

Harald Hoyer 762076
From 4c3be42cdf4c49785298ddb6b34beed1c8cc9d40 Mon Sep 17 00:00:00 2001
Harald Hoyer 762076
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 762076
Date: Sat, 21 Jul 2012 12:52:01 +0200
Harald Hoyer 762076
Subject: [PATCH] dracut.8: add more description about calling dracut
Harald Hoyer 762076
Harald Hoyer 762076
---
Harald Hoyer 762076
 dracut.8.asc | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
Harald Hoyer 762076
 1 file changed, 55 insertions(+), 1 deletion(-)
Harald Hoyer 762076
Harald Hoyer 762076
diff --git a/dracut.8.asc b/dracut.8.asc
Harald Hoyer 762076
index 0cd1663..24af936 100644
Harald Hoyer 762076
--- a/dracut.8.asc
Harald Hoyer 762076
+++ b/dracut.8.asc
Harald Hoyer 762076
@@ -14,6 +14,12 @@ SYNOPSIS
Harald Hoyer 762076
 
Harald Hoyer 762076
 DESCRIPTION
Harald Hoyer 762076
 -----------
Harald Hoyer 762076
+
Harald Hoyer 762076
+Create an initramfs <image> for the kernel with the version <kernel version>.
Harald Hoyer 762076
+If <kernel version> is omitted, then the version of the actual running
Harald Hoyer 762076
+kernel is used. If <image> is omitted or empty, then the default location
Harald Hoyer 762076
+/boot/initramfs-<kernel version>.img is used.
Harald Hoyer 762076
+
Harald Hoyer 762076
 dracut creates an initial image used by the kernel for preloading the block
Harald Hoyer 762076
 device modules (such as IDE, SCSI or RAID) which are needed to access the root
Harald Hoyer 762076
 filesystem, mounting the root filesystem and booting into the real system.
Harald Hoyer 762076
@@ -22,7 +28,55 @@ At boot time, the kernel unpacks that archive into RAM disk, mounts and uses it
Harald Hoyer 762076
 as initial root file system. All finding of the root device happens in this
Harald Hoyer 762076
 early userspace.
Harald Hoyer 762076
 
Harald Hoyer 762076
-For a complete list of kernel command line options see *dracut.cmdline*(7)
Harald Hoyer 762076
+For a complete list of kernel command line options see *dracut.cmdline*(7).
Harald Hoyer 762076
+
Harald Hoyer 762076
+EXAMPLE
Harald Hoyer 762076
+-------
Harald Hoyer 762076
+
Harald Hoyer 762076
+To create a initramfs image, the most simple command is:
Harald Hoyer 762076
+----
Harald Hoyer 762076
+# dracut
Harald Hoyer 762076
+----
Harald Hoyer 762076
+
Harald Hoyer 762076
+This will generate a general purpose initramfs image, with all possible
Harald Hoyer 762076
+functionality resulting of the combination of the installed dracut modules and
Harald Hoyer 762076
+system tools. The image is /boot/initramfs-_++<kernel version>++_.img and
Harald Hoyer 762076
+contains the kernel modules of the currently active kernel with version
Harald Hoyer 762076
+_++<kernel version>++_.
Harald Hoyer 762076
+
Harald Hoyer 762076
+If the initramfs image already exists, dracut will display an error message, and
Harald Hoyer 762076
+to overwrite the existing image, you have to use the --force option.
Harald Hoyer 762076
+----
Harald Hoyer 762076
+# dracut --force
Harald Hoyer 762076
+----
Harald Hoyer 762076
+
Harald Hoyer 762076
+If you want to specify another filename for the resulting image you would issue
Harald Hoyer 762076
+a command like:
Harald Hoyer 762076
+----
Harald Hoyer 762076
+# dracut foobar.img
Harald Hoyer 762076
+----
Harald Hoyer 762076
+
Harald Hoyer 762076
+To generate an image for a specific kernel version, the command would be:
Harald Hoyer 762076
+----
Harald Hoyer 762076
+# dracut foobar.img 2.6.40-1.rc5.f20
Harald Hoyer 762076
+----
Harald Hoyer 762076
+
Harald Hoyer 762076
+A shortcut to generate the image at the default location for a specific kernel
Harald Hoyer 762076
+version is:
Harald Hoyer 762076
+----
Harald Hoyer 762076
+# dracut --kver 2.6.40-1.rc5.f20
Harald Hoyer 762076
+----
Harald Hoyer 762076
+
Harald Hoyer 762076
+If you want to create lighter, smaller initramfs images, you may want to specify
Harald Hoyer 762076
+the --host-only or -H option. Using this option, the resulting image will
Harald Hoyer 762076
+contain only those dracut modules, kernel modules and filesystems, which are
Harald Hoyer 762076
+needed to boot this specific machine. This has the drawback, that you can't put
Harald Hoyer 762076
+the disk on another controller or machine, and that you can't switch to another
Harald Hoyer 762076
+root filesystem, without recreating the initramfs image. The usage of the
Harald Hoyer 762076
+--host-only option is only for experts and you will have to keep the broken
Harald Hoyer 762076
+pieces. At least keep a copy of a general purpose image (and corresponding
Harald Hoyer 762076
+kernel) as a fallback to rescue your system.
Harald Hoyer 762076
+
Harald Hoyer 762076
 
Harald Hoyer 762076
 OPTIONS
Harald Hoyer 762076
 -------