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 <!-- vim: set ts=8 sts=2 sw=2 et: -->
4 <refentry id=
"dracut8">
7 <productname>dracut
</productname>
10 <contrib>Project Leader, Developer
</contrib>
11 <firstname>Harald
</firstname>
12 <surname>Hoyer
</surname>
13 <email>harald@redhat.com
</email>
16 <contrib>Developer
</contrib>
17 <firstname>Victor
</firstname>
18 <surname>Lowther
</surname>
19 <email>victor.lowther@gmail.com
</email>
22 <contrib>Developer
</contrib>
23 <firstname>Philippe
</firstname>
24 <surname>Seewer
</surname>
25 <email>philippe.seewer@bfh.ch
</email>
28 <contrib>Developer
</contrib>
29 <firstname>Warren
</firstname>
30 <surname>Togami
</surname>
33 <contrib>Developer
</contrib>
34 <firstname>Amadeusz
</firstname>
35 <surname>Żołnowski
</surname>
36 <email>aidecoe@aidecoe.name
</email>
39 <contrib>Developer
</contrib>
40 <firstname>Jeremy
</firstname>
41 <surname>Katz
</surname>
44 <contrib>Developer
</contrib>
45 <firstname>David
</firstname>
46 <surname>Dillow
</surname>
47 <email>dave@thedillows.org
</email>
52 <refentrytitle>dracut
</refentrytitle>
53 <manvolnum>8</manvolnum>
54 <refmiscinfo class=
"version"/>
57 <refname>dracut
</refname>
58 <refpurpose>create initial ramdisk images for preloading modules
</refpurpose>
62 <command>dracut
</command>
63 <arg choice=
"opt" rep=
"repeat">
64 <replaceable>OPTION
</replaceable>
67 <replaceable><image
></replaceable>
69 <replaceable><kernel-version
></replaceable>
76 <title>Description
</title>
77 <para><command>dracut
</command>
78 creates an initial image used by the kernel for
79 preloading the block device modules (such as IDE, SCSI or RAID)
80 which are needed to access the root filesystem.
</para>
82 For a complete list of kernel command line options see
84 <refentrytitle>dracut.cmdline
</refentrytitle>
85 <manvolnum>7</manvolnum>
89 <title>Options
</title>
96 <option>--force
</option>
99 <para>overwrite existing initramfs file.
</para>
107 <option>--modules
<replaceable><list of dracut modules
></replaceable></option>
110 <para>specify a space-separated list of dracut modules to call
111 when building the initramfs.
112 Modules are located in
113 <filename>/usr/lib/dracut/modules.d
</filename>. This parameter can be specified multiple times.
</para>
115 If [LIST] has multiple arguments, then you have to put these in quotes.
117 <screen># dracut --modules
"module1 module2" ...
</screen>
126 <option>--omit
<replaceable><list of dracut modules
></replaceable></option>
129 <para>omit a space-separated list of dracut modules. This parameter can be specified multiple times.
</para>
131 If [LIST] has multiple arguments, then you have to put these in quotes.
133 <screen># dracut --omit
"module1 module2" ...
</screen>
142 <option>--add
<replaceable><list of dracut modules
></replaceable></option>
145 <para>add a space-separated list of dracut modules to the default set of modules. This parameter can be specified multiple times.
</para>
147 If [LIST] has multiple arguments, then you have to put these in quotes.
149 <screen># dracut --add
"module1 module2" ...
</screen>
155 <option>--force-add
<replaceable><list of dracut modules
></replaceable></option>
158 <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>
160 If [LIST] has multiple arguments, then you have to put these in quotes.
162 <screen># dracut --force-add
"module1 module2" ...
</screen>
172 <option>--drivers
<replaceable><list of kernel modules
></replaceable></option>
175 <para>specify a space-separated list of kernel modules to exclusively include
177 The kernel modules have to be specified without the
".ko
" suffix. This parameter can be specified multiple times.
</para>
179 If [LIST] has multiple arguments, then you have to put these in quotes.
181 <screen># dracut --drivers
"kmodule1 kmodule2" ...
</screen>
187 <option>--add-drivers
<replaceable><list of kernel modules
></replaceable></option>
190 <para>specify a space-separated list of kernel modules to add to the initramfs.
191 The kernel modules have to be specified without the
".ko
" suffix. This parameter can be specified multiple times.
</para>
193 If [LIST] has multiple arguments, then you have to put these in quotes.
195 <screen># dracut --add-drivers
"kmodule1 kmodule2" ...
</screen>
201 <option>--omit-drivers
<replaceable><list of kernel modules
></replaceable></option>
204 <para>specify a space-separated list of kernel modules not to add to the initramfs.
205 The kernel modules have to be specified without the
".ko
" suffix. This parameter can be specified multiple times.
</para>
207 If [LIST] has multiple arguments, then you have to put these in quotes.
209 <screen># dracut --omit-drivers
"kmodule1 kmodule2" ...
</screen>
215 <option>--filesystems
<replaceable><list of filesystems
></replaceable></option>
218 <para>specify a space-separated list of kernel filesystem modules to exclusively
219 include in the generic initramfs. This parameter can be specified multiple times.
</para>
221 If [LIST] has multiple arguments, then you have to put these in quotes.
223 <screen># dracut --filesystems
"filesystem1 filesystem2" ...
</screen>
232 <option>--kmoddir
<replaceable><kernel directory
></replaceable></option>
235 <para>specify the directory, where to look for kernel modules
</para>
240 <option> --fwdir
<replaceable><dir
>[:
<dir
>...]
</replaceable></option>
243 <para>specify additional directories, where to look for firmwares. This parameter can be specified multiple times.
</para>
248 <option>--kernel-only
</option>
251 <para>only install kernel drivers and firmware files
</para>
256 <option>--no-kernel
</option>
259 <para>do not install kernel drivers and firmware files
</para>
264 <option>--mdadmconf
</option>
267 <para>include local
<filename>/etc/mdadm.conf
</filename></para>
272 <option>--nomdadmconf
</option>
275 <para>do not include local
<filename>/etc/mdadm.conf
</filename></para>
280 <option>--lvmconf
</option>
283 <para>include local
<filename>/etc/lvm/lvm.conf
</filename></para>
288 <option>--nolvmconf
</option>
291 <para>do not include local
<filename>/etc/lvm/lvm.conf
</filename></para>
296 <option>--fscks [LIST]
</option>
299 <para>add a space-separated list of fsck tools, in addition to
300 <filename>dracut.conf
</filename>'s specification; the
301 installation is opportunistic (non-existing tools are ignored)
304 If [LIST] has multiple arguments, then you have to put these in quotes.
306 <screen># dracut --fscks
"fsck.foo barfsck" ...
</screen>
312 <option>--nofscks
</option>
315 <para>inhibit installation of any fsck tools
</para>
320 <option>--strip
</option>
323 <para>strip binaries in the initramfs (default)
</para>
328 <option>--nostrip
</option>
331 <para>do not strip binaries in the initramfs
</para>
336 <option>--prefix
<replaceable><dir
></replaceable></option>
339 <para>prefix initramfs files with the specified directory
</para>
344 <option>--noprefix
</option>
347 <para>do not prefix initramfs files (default)
</para>
352 <option>--ctty
</option>
355 <para>if possible, try to spawn an emergency shell on a terminal
356 with job control
</para>
364 <option>--help
</option>
367 <para>display help text and exit.
</para>
372 <option>--debug
</option>
375 <para>output debug information of the build process
</para>
383 <option>--verbose
</option>
386 <para>increase verbosity level (default is info(
4))
</para>
394 <option>--quiet
</option>
397 <para>decrease verbosity level (default is info(
4))
</para>
405 <option>--conf
<replaceable><dracut configuration file
></replaceable></option>
408 <para>specify configuration file to use.
410 <filename>/etc/dracut.conf
</filename></para>
415 <option>--confdir
<replaceable><configuration directory
></replaceable></option>
418 <para>specify configuration directory to use.
420 <filename>/etc/dracut.conf.d
</filename></para>
425 <option>--sshkey
<replaceable><sshkey file
></replaceable></option>
428 <para>ssh key file used with ssh-client module.
</para>
436 <option>--local
</option>
439 <para>activates the local mode. dracut will use modules from the current working
440 directory instead of the system-wide installed modules in
441 <filename>/usr/lib/dracut/modules.d
</filename>.
442 This is useful when running dracut from a git checkout.
</para>
450 <option>--hostonly
</option>
453 <para>Host-Only mode: Install only what is needed for booting
454 the local host instead of a generic host.
456 <para>If chrooted to another root other than the real root device, use
"--fstab
" and provide a valid
<filename>/etc/fstab
</filename>.
</para>
462 <option>--fstab
</option>
465 <para>Use
<filename>/etc/fstab
</filename> instead of
<filename>/proc/self/mountinfo
</filename>.
</para>
470 <option>--add_fstab
<replaceable><filename
></replaceable> </option>
473 <para>Add entries of
<replaceable><filename
></replaceable> to the initramfs /etc/fstab.
</para>
478 <option>--mount
"<replaceable><device
></replaceable> <replaceable><mountpoint
></replaceable> <replaceable><filesystem type
></replaceable> <replaceable><filesystem options
></replaceable>"</option>
481 <para>Add entries of
<replaceable><filename
></replaceable> to the initramfs /etc/fstab.
</para>
489 <option>--include
<replaceable><SOURCE
></replaceable> <replaceable><TARGET
></replaceable></option>
492 <para>include the files in the SOURCE directory into the
493 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>
501 <option>--install
<replaceable><file list
></replaceable></option>
504 <para>install the space separated list of files into the initramfs.
</para>
506 If [LIST] has multiple arguments, then you have to put these in quotes.
508 <screen># dracut --install
"/bin/foo /sbin/bar" ...
</screen>
514 <option>--gzip
</option>
517 <para>Compress the generated initramfs using gzip.
518 This will be done by default, unless another compression option or --no-compress is passed. Equivalent to
"--compress=gzip -9"</para>
523 <option>--bzip2
</option>
526 <para>Compress the generated initramfs using bzip2.
528 <para>Make sure your kernel has bzip2 decompression support compiled in, otherwise you will not be able to boot. Equivalent to
"--compress=bzip2"</para>
534 <option>--lzma
</option>
537 <para>Compress the generated initramfs using lzma.
539 <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>
545 <option>--xz
</option>
548 <para>Compress the generated initramfs using xz.
550 <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>
556 <option>--compress
<replaceable><compressor
></replaceable></option>
559 <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>
564 <option>--no-compress
</option>
567 <para>Do not compress the generated initramfs. This will override any other compression options.
</para>
572 <option>--list-modules
</option>
575 <para>List all available dracut modules.
</para>
583 <option>--show-modules
</option>
586 <para>Print included module's name to standard output during build.
</para>
591 <option>--keep
</option>
594 <para>Keep the initramfs temporary directory for debugging purposes.
</para>
605 <filename>/var/log/dracut.log
</filename>
608 <para>logfile of initramfs image creation
</para>
613 <filename>/tmp/dracut.log
</filename>
616 <para>logfile of initramfs image creation, if
<filename>/var/log/dracut.log
</filename> is not writable
</para>
621 <filename>/etc/dracut.conf
</filename>
624 <para>see
<citerefentry>
625 <refentrytitle>dracut.conf
</refentrytitle>
626 <manvolnum>5</manvolnum>
627 </citerefentry></para>
632 <filename>/etc/dracut.conf.d/*.conf
</filename>
635 <para>see
<citerefentry>
636 <refentrytitle>dracut.conf
</refentrytitle>
637 <manvolnum>5</manvolnum>
638 </citerefentry></para>
643 <title>Configuration in the Initramfs
</title>
647 <filename>/etc/conf.d/
</filename>
650 <para>Any files found in
<filename>/etc/conf.d/
</filename> will be sourced in the initramfs to
651 set initial values. Command line options will override these values
652 set in the configuration files.
</para>
657 <filename>/etc/cmdline
</filename>
660 <para>Can contain additional command line options.
</para>
667 <title>Availability
</title>
668 <para>The dracut command is part of the dracut package and is available from
669 <ulink url='https://dracut.wiki.kernel.org'
>https://dracut.wiki.kernel.org
</ulink></para>
672 <title>See Also
</title>
675 <refentrytitle>dracut.cmdline
</refentrytitle>
676 <manvolnum>7</manvolnum>
679 <refentrytitle>dracut.conf
</refentrytitle>
680 <manvolnum>5</manvolnum>