1 <?xml version='
1.0' encoding='UTF-
8'
?>
2 <!-- This document was created with Syntext Serna Free. --><!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" []
>
3 <refentry id=
"dracut8">
6 <productname>dracut
</productname>
9 <contrib>Project Leader, Developer
</contrib>
10 <firstname>Harald
</firstname>
11 <surname>Hoyer
</surname>
12 <email>harald@redhat.com
</email>
15 <contrib>Developer
</contrib>
16 <firstname>Victor
</firstname>
17 <surname>Lowther
</surname>
18 <email>victor.lowther@gmail.com
</email>
21 <contrib>Developer
</contrib>
22 <firstname>Warren
</firstname>
23 <surname>Togami
</surname>
24 <email>wtogami@redhat.com
</email>
27 <contrib>Developer
</contrib>
28 <firstname>Jeremy
</firstname>
29 <surname>Katz
</surname>
30 <email>katzj@redhat.com
</email>
33 <contrib>Developer
</contrib>
34 <firstname>Philippe
</firstname>
35 <surname>Seewer
</surname>
36 <email>philippe.seewer@bfh.ch
</email>
39 <contrib>Developer
</contrib>
40 <firstname>David
</firstname>
41 <surname>Dillow
</surname>
42 <email>dave@thedillows.org
</email>
45 <contrib>Developer
</contrib>
46 <firstname>Amadeusz
</firstname>
47 <surname>Żołnowski
</surname>
48 <email>aidecoe@aidecoe.name
</email>
53 <refentrytitle>dracut
</refentrytitle>
54 <manvolnum>8</manvolnum>
55 <refmiscinfo class=
"version"/>
58 <refname>dracut
</refname>
59 <refpurpose>create initial ramdisk images for preloading modules
</refpurpose>
63 <command>dracut
</command>
64 <arg choice=
"opt" rep=
"repeat">
65 <replaceable>OPTION
</replaceable>
68 <replaceable><image
></replaceable>
70 <replaceable><kernel-version
></replaceable>
77 <title>Description
</title>
78 <para><command>dracut
</command>
79 creates an initial image used by the kernel for
80 preloading the block device modules (such as IDE, SCSI or RAID)
81 which are needed to access the root filesystem.
</para>
83 For a complete list of kernel command line options see
85 <refentrytitle>dracut.kernel
</refentrytitle>
86 <manvolnum>7</manvolnum>
90 <title>Options
</title>
97 <option>--force
</option>
100 <para>overwrite existing initramfs file.
</para>
108 <option>--modules
<replaceable><list of dracut modules
></replaceable></option>
111 <para>specify a space-separated list of dracut modules to call
112 when building the initramfs.
113 Modules are located in
114 <filename>/usr/share/dracut/modules.d
</filename>. This parameter can be specified multiple times.
</para>
122 <option>--omit
<replaceable><list of dracut modules
></replaceable></option>
125 <para>omit a space-separated list of dracut modules. This parameter can be specified multiple times.
</para>
133 <option>--add
<replaceable><list of dracut modules
></replaceable></option>
136 <para>add a space-separated list of dracut modules to the default set of modules. This parameter can be specified multiple times.
</para>
141 <option>--force-add
<replaceable><list of dracut modules
></replaceable></option>
144 <para>force to add a space-separated list of dracut modules to the default set of modules, when -H is specified. This parameter can be specified multiple times.
</para>
153 <option>--drivers
<replaceable><list of kernel modules
></replaceable></option>
156 <para>specify a space-separated list of kernel modules to exclusively include
158 The kernel modules have to be specified without the
".ko
" suffix. This parameter can be specified multiple times.
</para>
163 <option>--add-drivers
<replaceable><list of kernel modules
></replaceable></option>
166 <para>specify a space-separated list of kernel modules to add to the initramfs.
167 The kernel modules have to be specified without the
".ko
" suffix. This parameter can be specified multiple times.
</para>
172 <option>--filesystems
<replaceable><list of filesystems
></replaceable></option>
175 <para>specify a space-separated list of kernel filesystem modules to exclusively
176 include in the generic initramfs. This parameter can be specified multiple times.
</para>
184 <option>--kmoddir
<replaceable><kernel directory
></replaceable></option>
187 <para>specify the directory, where to look for kernel modules
</para>
192 <option> --fwdir
<replaceable><dir
>[:
<dir
>...]
</replaceable></option>
195 <para>specify additional directories, where to look for firmwares. This parameter can be specified multiple times.
</para>
200 <option>--kernel-only
</option>
203 <para>only install kernel drivers and firmware files
</para>
208 <option>--no-kernel
</option>
211 <para>do not install kernel drivers and firmware files
</para>
216 <option>--mdadmconf
</option>
219 <para>include local
<filename>/etc/mdadm.conf
</filename></para>
224 <option>--nomdadmconf
</option>
227 <para>do not include local
<filename>/etc/mdadm.conf
</filename></para>
232 <option>--strip
</option>
235 <para>strip binaries in the initramfs (default)
</para>
240 <option>--nostrip
</option>
243 <para>do not strip binaries in the initramfs
</para>
248 <option>--prefix
<replaceable><dir
></replaceable></option>
251 <para>prefix initramfs files with the specified directory
</para>
256 <option>--noprefix
</option>
259 <para>do not prefix initramfs files (default)
</para>
267 <option>--help
</option>
270 <para>display help text and exit.
</para>
275 <option>--debug
</option>
278 <para>output debug information of the build process
</para>
286 <option>--verbose
</option>
289 <para>increase verbosity level (default is info(
4))
</para>
297 <option>--quiet
</option>
300 <para>decrease verbosity level (default is info(
4))
</para>
308 <option>--conf
<replaceable><dracut configuration file
></replaceable></option>
311 <para>specify configuration file to use.
313 <filename>/etc/dracut.conf
</filename></para>
318 <option>--confdir
<replaceable><configuration directory
></replaceable></option>
321 <para>specify configuration directory to use.
323 <filename>/etc/dracut.conf.d
</filename></para>
331 <option>--local
</option>
334 <para>activates the local mode. dracut will use modules from the current working
335 directory instead of the system-wide installed modules in
336 <filename>/usr/share/dracut/modules.d
</filename>.
337 This is useful when running dracut from a git checkout.
</para>
345 <option>--hostonly
</option>
348 <para>Host-Only mode: Install only what is needed for booting
349 the local host instead of a generic host.
351 <para>If chrooted to another root other than the real root device, use
"--fstab
" and provide a valid
<filename>/etc/fstab
</filename>.
</para>
357 <option>--fstab
</option>
360 <para>Use
<filename>/etc/fstab
</filename> instead of
<filename>/proc/self/mountinfo
</filename>.
</para>
368 <option>--include
<replaceable><SOURCE
></replaceable> <replaceable><TARGET
></replaceable></option>
371 <para>include the files in the SOURCE directory into the
372 TARGET directory in the final initramfs. If SOURCE is a file, it will be installed to TARGET in the final initramfs. This parameter can be specified multiple times.
</para>
380 <option>--install
<replaceable><file list
></replaceable></option>
383 <para>install the space separated list of files into the initramfs.
</para>
388 <option>--gzip
</option>
391 <para>Compress the generated initramfs using gzip.
392 This will be done by default, unless another compression option or --no-compress is passed. Equivalent to
"--compress=gzip -9"</para>
397 <option>--bzip2
</option>
400 <para>Compress the generated initramfs using bzip2.
402 <para>Make sure your kernel has bzip2 decompression support compiled in, otherwise you will not be able to boot. Equivalent to
"--compress=bzip2"</para>
408 <option>--lzma
</option>
411 <para>Compress the generated initramfs using lzma.
413 <para>Make sure your kernel has lzma decompression support compiled in, otherwise you will not be able to boot. Equivalent to
"--compress=lzma -9"</para>
419 <option>--xz
</option>
422 <para>Compress the generated initramfs using xz.
424 <para>Make sure your kernel has xz decompression support compiled in, otherwise you will not be able to boot. Equivalent to
"--compress=xz --check=crc32 --lzma2=dict=1MiB"</para>
430 <option>--compress
<replaceable><compressor
></replaceable></option>
433 <para>Compress the generated initramfs using the passed compression program. If you pass it just the name of a compression program, it will call that program with known-working arguments. If you pass a quoted string with arguments, it will be called with exactly those arguments. Depending on what you pass, this may result in an initramfs that the kernel cannot decompress.
</para>
438 <option>--no-compress
</option>
441 <para>Do not compress the generated initramfs. This will override any other compression options.
</para>
446 <option>--list-modules
</option>
449 <para>List all available dracut modules.
</para>
457 <option>--show-modules
</option>
460 <para>Print included module's name to standard output during build.
</para>
465 <option>--keep
</option>
468 <para>Keep the initramfs temporary directory for debugging purposes.
</para>
479 <filename>/var/log/dracut.log
</filename>
482 <para>logfile of initramfs image creation
</para>
487 <filename>/tmp/dracut.log
</filename>
490 <para>logfile of initramfs image creation, if
<filename>/var/log/dracut.log
</filename> is not writable
</para>
495 <filename>/etc/dracut.conf
</filename>
498 <para>see
<citerefentry>
499 <refentrytitle>dracut.conf
</refentrytitle>
500 <manvolnum>5</manvolnum>
501 </citerefentry></para>
506 <filename>/etc/dracut.conf.d/*.conf
</filename>
509 <para>see
<citerefentry>
510 <refentrytitle>dracut.conf
</refentrytitle>
511 <manvolnum>5</manvolnum>
512 </citerefentry></para>
517 <title>Configuration in the Initramfs
</title>
521 <filename>/etc/conf.d/
</filename>
524 <para>Any files found in
<filename>/etc/conf.d/
</filename> will be sourced in the initramfs to
525 set initial values. Command line options will override these values
526 set in the configuration files.
</para>
531 <filename>/etc/cmdline
</filename>
534 <para>Can contain additional command line options.
</para>
541 <title>Availability
</title>
542 <para>The dracut command is part of the dracut package and is available from
543 <ulink url='https://dracut.wiki.kernel.org'
>https://dracut.wiki.kernel.org
</ulink></para>
546 <title>See Also
</title>
549 <refentrytitle>dracut.kernel
</refentrytitle>
550 <manvolnum>7</manvolnum>
553 <refentrytitle>dracut.conf
</refentrytitle>
554 <manvolnum>5</manvolnum>