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>
144 <option>--drivers <replaceable><list of kernel modules></replaceable></option>
147 <para>specify a space-separated list of kernel modules to exclusively include
149 The kernel modules have to be specified without the ".ko" suffix. This parameter can be specified multiple times.</para>
154 <option>--add-drivers <replaceable><list of kernel modules></replaceable></option>
157 <para>specify a space-separated list of kernel modules to add to the initramfs.
158 The kernel modules have to be specified without the ".ko" suffix. This parameter can be specified multiple times.</para>
163 <option>--filesystems <replaceable><list of filesystems></replaceable></option>
166 <para>specify a space-separated list of kernel filesystem modules to exclusively
167 include in the generic initramfs. This parameter can be specified multiple times.</para>
175 <option>--kmoddir <replaceable><kernel directory></replaceable></option>
178 <para>specify the directory, where to look for kernel modules</para>
183 <option> --fwdir <replaceable><dir>[:<dir>...]</replaceable></option>
186 <para>specify additional directories, where to look for firmwares. This parameter can be specified multiple times.</para>
191 <option>--kernel-only</option>
194 <para>only install kernel drivers and firmware files</para>
199 <option>--no-kernel</option>
202 <para>do not install kernel drivers and firmware files</para>
207 <option>--mdadmconf</option>
210 <para>include local <filename>/etc/mdadm.conf</filename></para>
215 <option>--nomdadmconf</option>
218 <para>do not include local <filename>/etc/mdadm.conf</filename></para>
223 <option>--strip</option>
226 <para>strip binaries in the initramfs (default)</para>
231 <option>--nostrip</option>
234 <para>do not strip binaries in the initramfs</para>
242 <option>--help</option>
245 <para>display help text and exit.</para>
250 <option>--debug</option>
253 <para>output debug information of the build process</para>
261 <option>--verbose</option>
264 <para>verbose output during the build process</para>
272 <option>--conf <replaceable><dracut configuration file></replaceable></option>
275 <para>specify configuration file to use.
277 <filename>/etc/dracut.conf</filename></para>
282 <option>--confdir <replaceable><configuration directory></replaceable></option>
285 <para>specify configuration directory to use.
287 <filename>/etc/dracut.conf.d</filename></para>
295 <option>--local</option>
298 <para>activates the local mode. dracut will use modules from the current working
299 directory instead of the system-wide installed modules in
300 <filename>/usr/share/dracut/modules.d</filename>.
301 This is useful when running dracut from a git checkout.</para>
309 <option>--hostonly</option>
312 <para>Host-Only mode: Install only what is needed for booting
313 the local host instead of a generic host.
315 <para>If chrooted to another root other than the real root device, use "--fstab" and provide a valid <filename>/etc/fstab</filename>.</para>
321 <option>--fstab</option>
324 <para>Use <filename>/etc/fstab</filename> instead of <filename>/proc/self/mountinfo</filename>.</para>
332 <option>--include <replaceable><SOURCE></replaceable> <replaceable><TARGET></replaceable></option>
335 <para>include the files in the SOURCE directory into the
336 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>
344 <option>--install <replaceable><file list></replaceable></option>
347 <para>install the space separated list of files into the initramfs.</para>
352 <option>--gzip</option>
355 <para>Compress the generated initramfs using gzip.
356 This will be done by default, unless another compression option or --no-compress is passed.</para>
361 <option>--bzip2</option>
364 <para>Compress the generated initramfs using bzip2.
366 <para>Make sure your kernel has bzip2 decompression support compiled in, otherwise you will not be able to boot.</para>
372 <option>--lzma</option>
375 <para>Compress the generated initramfs using lzma.
377 <para>Make sure your kernel has lzma decompression support compiled in, otherwise you will not be able to boot.</para>
383 <option>--no-compress</option>
386 <para>Do not compress the generated initramfs. This will override any other compression options.</para>
391 <option>--list-modules</option>
394 <para>List all available dracut modules.</para>
405 <filename>/var/log/dracut.log</filename>
408 <para>logfile of initramfs image creation</para>
413 <filename>/tmp/dracut.log</filename>
416 <para>logfile of initramfs image creation, if <filename>/var/log/dracut.log</filename> is not writable</para>
421 <filename>/etc/dracut.conf</filename>
424 <para>see <citerefentry>
425 <refentrytitle>dracut.conf</refentrytitle>
426 <manvolnum>5</manvolnum>
427 </citerefentry></para>
432 <filename>/etc/dracut.conf.d/*.conf</filename>
435 <para>see <citerefentry>
436 <refentrytitle>dracut.conf</refentrytitle>
437 <manvolnum>5</manvolnum>
438 </citerefentry></para>
443 <title>Configuration in the Initramfs</title>
447 <filename>/etc/conf.d/</filename>
450 <para>Any files found in <filename>/etc/conf.d/</filename> will be sourced in the initramfs to
451 set initial values. Command line options will override these values
452 set in the configuration files.</para>
457 <filename>/etc/cmdline</filename>
460 <para>Can contain additional command line options.</para>
467 <title>Availability</title>
468 <para>The dracut command is part of the dracut package and is available from
469 <ulink url="http://sourceforge.net/apps/trac/dracut/wiki">http://sourceforge.net/apps/trac/dracut/wiki</ulink></para>
472 <title>See Also</title>
475 <refentrytitle>dracut.kernel</refentrytitle>
476 <manvolnum>7</manvolnum>
479 <refentrytitle>dracut.conf</refentrytitle>
480 <manvolnum>5</manvolnum>