OPTIONS
-------
+**--kver** _<kernel version>_::
+ set the kernel version. This enables to specify the kernel version, without
+ specifying the location of the initramfs image. For example:
+----
+# dracut --kver 3.5.0-0.rc7.git1.2.fc18.x86_64
+----
+
**-f, --force**::
overwrite existing initramfs file.
A shortcut to generate the image at the default location for a specific kernel
version is:
----
-# dracut '' 2.6.40-1.rc5.f20
+# dracut --kver 2.6.40-1.rc5.f20
----
If you want to create lighter, smaller initramfs images, you may want to specify
Creates initial ramdisk images for preloading modules
+ --kver [VERSION] Set kernel version to [VERSION].
-f, --force Overwrite existing initramfs file.
-m, --modules [LIST] Specify a space-separated list of dracut modules to
call when building the initramfs. Modules are located
TEMP=$(unset POSIXLY_CORRECT; getopt \
-o "a:m:o:d:I:k:c:L:fvqlHhM" \
+ --long kver: \
--long add: \
--long force-add: \
--long add-drivers: \
while :; do
case $1 in
+ --kver) kernel="$2"; shift;;
-a|--add) push add_dracutmodules_l "$2"; shift;;
--force-add) push force_add_dracutmodules_l "$2"; shift;;
--add-drivers) push add_drivers_l "$2"; shift;;