debug: add fsck to debug module
[dracut.git] / dracut.8
blob45d3295e254267e19d185df42107218cba017b55
1 .TH DRACUT 8 "June 2009" "Linux"
2 .SH NAME
3 dracut \- create initial ramdisk images for preloading modules
4 .SH SYNOPSIS
5 \fBdracut\fR [\fIOPTION\fR]... \fI<image>\fR  \fI<kernel-version>\fR
7 .SH DESCRIPTION
8 .B dracut
9 creates an initial image used by the kernel for
10 preloading the block device modules (such as IDE, SCSI or RAID)
11 which are needed to access the root filesystem.
13 .SS Options
14 .TP
15 .BR \-f ", " \-\-force
16 overwrite existing initramfs file.
17 .TP
18 .BR \-m ", " \-\-modules " \fILIST\fR"
19 specify a space-separated list of dracut modules to call 
20 when building the initramfs. 
21 Modules are located in 
22 .IR /usr/share/dracut/modules.d .
23 .TP
24 .BR \-o ", " \-\-omit " \fILIST\fR"
25 omit a space-separated list of dracut modules.
26 .TP
27 .BR \-a ", " \-\-add " \fILIST\fR"
28 add a space-separated list of dracut modules.
29 .TP
30 .BR \-d ", " \-\-drivers " \fILIST\fR"
31 specify a space-separated list of kernel modules to exclusively include
32 in the initramfs.
33 The kernel modules have to be specified without the ".ko" suffix.
34 .TP
35 .BR \-\-add-drivers " \fILIST\fR"
36 specify a space-separated list of kernel modules to add to the initramfs.
37 The kernel modules have to be specified without the ".ko" suffix.
38 .TP
39 .BR \-\-filesystems " \fILIST\fR"
40 specify a space-separated list of kernel filesystem modules to exclusively 
41 include in the generic initramfs.
42 .TP
43 .BR \-k ", " \-\-kmoddir " \fI{DIR}\fR   
44 specify the directory, where to look for kernel modules
45 .TP
46 .BR " \-\-fwdir " \fI{DIR}\fR   
47 specify additional directory, where to look for firmwares
48 .TP
49 .BR \-\-kernel-only
50 only install kernel drivers and firmware files
51 .TP
52 .BR \-\-no-kernel
53 do not install kernel drivers and firmware files
54 .TP
55 .BR \-\-mdadmconf
56 include local /etc/mdadm.conf
57 .TP
58 .BR \-\-nomdadmconf
59 do not include local /etc/mdadm.conf
60 .TP
61 .BR \-\-strip
62 strip binaries in the initramfs (default)
63 .TP
64 .BR \-\-nostrip
65 do not strip binaries in the initramfs
66 .TP
67 .BR \-h ", " \-\-help
68 display help text and exit. 
69 .TP
70 .B \-\-debug
71 output debug information of the build process
72 .TP
73 .BR \-v ", " \-\-verbose
74 verbose output during the build process
75 .TP
76 .BR \-c ", " \-\-conf " \fIFILE\fR"
77 specify configuration file to use.
78 Default: 
79 .IR /etc/dracut.conf
80 .TP
81 .BR \-\-confdir " \fIDIR\fR"
82 specify configuration directory to use.
83 Default: 
84 .IR /etc/dracut.conf.d
85 .TP
86 .BR \-l ", " \-\-local
87 local mode. Use modules from the current working
88 directory instead of the system-wide installed in
89 .IR /usr/share/dracut/modules.d .
90 Useful when running dracut from a git checkout.
91 .TP
92 .BR \-H ", " \-\-hostonly
93 Host-Only mode: Install only what is needed for
94 booting the local host instead of a generic host.
95 .TP
96 .BR \-i ", " \-\-include " \fISOURCE\fR" "" " \fITARGET\fR"
97 include the files in the SOURCE directory into the
98 target directory in the final initramfs.
99 .TP
100 .BR \-I ", " \-\-install " \fILIST\fR"
101 install the space separated list of files into the initramfs.
103 .SH "KERNEL COMMAND LINE"
104 The root filesystem used by the kernel is specified in the boot configuration
105 file, as always. The traditional \fBroot=/dev/hda1\fR style device 
106 specification is allowed. If a label is used, as in \fBroot=LABEL=rootPart\fR
107 the initrd will search all available devices for an ext2 or ext3 filesystem
108 with the appropriate label, and mount that device as the root filesystem.
109 \fBroot=UUID=uuidnumber\fR will mount the partition with that UUID as the 
110 root filesystem.
112 .SS Standard
114 .BR init= "<path to real init>"
116 .BR root= "<path to blockdevice>"
117 specify blockdevice to use as root filesystem. 
118  e.g.
119   root=/dev/sda1
120   root=/dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:1:0-part1
122 .BR rootfstype= "<filesystem type>"
123 "auto" if not specified, e.g. rootfstype=ext3
125 .BR rootflags "=<mount options>"
126 specify additional mount options for the root filesystem. If not set, /etc/fstab
127 of the real root will be parsed for special mount options and mounted 
128 accordingly.
130 .B rd_NO_FSTAB
131 do not honor special mount options for the root filesystem found in 
132 /etc/fstab of the real root.
134 .SS Misc
136 .BR rdblacklist= <drivername>
137 do not load kernel module <drivername>
138 This parameter can be specified multiple times.
140 .BR rdloaddriver= <drivername>
141 force loading kernel module <drivername>
142 This parameter can be specified multiple times.
144 .SS Debug
146 .B rdinfo
147 print informational output though "quiet" is set
149 .B rdshell
150 allow dropping to a shell, if root mounting fails
152 .B rdinitdebug
153 set -x for the dracut shell and logs to dmesg, console and /init.log
155 .B rdbreak
156 drop to a shell at the end
158 .ad l
159 .BR rdbreak= \%{cmdline\:|pre-udev\:|pre-trigger\:|initqueue\:|pre-mount\:|mount\:|pre-pivot}
161 drop to a shell on defined breakpoint
163 .B rdudevinfo
164 set udev to loglevel info
166 .B rdudevdebug
167 set udev to loglevel debug
169 .SS I18N
170  e.g.
171   LANG=en_US.UTF-8
172   SYSFONT=latarcyrheb-sun16
173   KEYTABLE=de-latin1-nodeadkeys
175 .BR KEYBOARDTYPE= sun|pc
176 will be written to /etc/sysconfig/keyboard in the initramfs
178 .BR KEYTABLE= "<keytable filename>"
179 will be written to /etc/sysconfig/keyboard in the initramfs
181 .BR SYSFONT= "Console font"
182 will be written to /etc/sysconfig/i18n in the initramfs
184 .BR SYSFONTACM= "Unicode font map"
185 will be written to /etc/sysconfig/i18n in the initramfs
187 .BR UNIMAP= "Unicode font map"
188 will be written to /etc/sysconfig/i18n in the initramfs
190 .BR LANG= <locale>
191 will be written to /etc/sysconfig/i18n in the initramfs
193 .SS LVM
195 .BR rd_NO_LVM
196 disable LVM detection
198 .BR rd_LVM_VG= "<volume group name>"
199 only activate the volume groups with the given name
200 rd_LVM_VG can be specified multiple times on the kernel command line.
202 .BR rd_LVM_LV= "<logical volume name>"
203 only activate the logical volumes with the given name
204 rd_LVM_LV can be specified multiple times on the kernel command line.
206 .BR rd_NO_LVMCONF
207 remove any /etc/lvm/lvm.conf, which may exist in the initramfs
209 .SS "crypto LUKS"
211 .BR rd_NO_LUKS
212 disable crypto LUKS detection
214 .BR rd_LUKS_UUID= "<luks uuid>"
215 only activate the LUKS partitions with the given UUID
216 Any "luks-" of the LUKS UUID is removed before comparing to <luks uuid>.
217 The comparisons also matches, if <luks uuid> is only the beginning of the 
218 LUKS UUID, so you don't have to specify the full UUID.
219 This parameter can be specified multiple times.
221 .BR rd_NO_CRYPTTAB
222 do not check, if LUKS partition is in /etc/crypttab
224 .SS MD
226 .BR rd_NO_MD
227 disable MD RAID detection
229 .BR rd_NO_MDIMSM
230 no MD RAID for imsm/isw raids, use dmraid instead
232 .BR rd_NO_MDADMCONF
233 ignore mdadm.conf included in initramfs
235 .BR rd_MD_UUID= "<md uuid>"
236 only activate the raid sets with the given UUID.
237 This parameter can be specified multiple times.
239 .SS DMRAID
241 .BR rd_NO_DM
242 disable DM RAID detection
244 .BR rd_DM_UUID= "<dmraid uuid>"
245 only activate the raid sets with the given UUID.
246 This parameter can be specified multiple times.
248 .SS Network
250 .BR ip= {dhcp|on|any|dhcp6|auto6}
251 dhcp|on|any: get ip from dhcp server from all interfaces. If root=dhcp, 
252 loop sequentially through all interfaces (eth0, eth1, ...) and use the first 
253 with a valid DHCP root-path.
255 auto6: do IPv6 autoconfiguration
257 .BR ip= <interface>:{dhcp|on|any|dhcp6|auto6}
258 dhcp|on|any|dhcp6: get ip from dhcp server on a specific interface
259 auto6: do IPv6 autoconfiguration
260 This parameter can be specified multiple times.
263 .ad l
264 .BR ip= "\%<client-IP>\::[<server-id>]\::<gateway-IP>\::<netmask>\::<client\%hostname>\::<interface>\::{none|off}"
266 explicit network configuration. If you want do define a IPv6 address, put it in brackets (e.g. [2001:DB8::1]).
267 This parameter can be specified multiple times.
269 .BR ifname= <interface>:<MAC>
270 Assign network device name <interface> (ie eth0) to the NIC with MAC <MAC>.
271 Note letters in the MAC-address must be lowercase!
272 Note that if you use this option you \fBmust\fR specify an ifname= argument
273 for all interfaces used in ip= or fcoe= arguments
274 This parameter can be specified multiple times.
276 .BR bootdev= <interface>
277 specify network interface to use routing and netroot information from. 
278 Required if multiple ip= lines are used.
280 .BR nameserver= "<IP> [nameserver=<IP> ...]"
281 specify nameserver(s) to use
283 .SS NFS
285 .BR root= "[<server-ip>:]<root-dir>[:<nfs-options>]"
286 mount nfs share from <server-ip>:/<root-dir>, if no server-ip is given,
287 use dhcp next_server. if server-ip is an IPv6 address it has to be put in brackets, e.g. [2001:DB8::1].
288 NFS options can be appended with the prefix ":" or "," and are seperated by ",".
290 .BR root= "nfs:[<server-ip>:]<root-dir>[:<nfs-options>]"
292 .BR root= "nfs4:[<server-ip>:]<root-dir>[:<nfs-options>]"
294 .BR root= dhcp|dhcp6 
295 root=dhcp alone directs initrd to look at the DHCP root-path where NFS 
296 options can be specified.
297     root-path=<server-ip>:<root-dir>[,<nfs-options>]
298     root-path=nfs:<server-ip>:<root-dir>[,<nfs-options>]
299     root-path=nfs4:<server-ip>:<root-dir>[,<nfs-options>] 
301 .BR root= /dev/nfs " nfsroot=" "[<server-ip>:]<root-dir>[,<nfs-options>]"
302 \fBDeprecated!\fR kernel Documentation/filesystems/nfsroot.txt defines 
303 this method.  
304 This is supported by dracut but not recommended.
306 .BR rd_NFS_DOMAIN= "<NFSv4 domain name>"
307 Set the NFSv4 domain name. Will overwrite the settings in /etc/idmap.conf.
309 .SS iSCSI
311 .ad l
312 .BR root= "\%iscsi:[username:password\:[:reverse:password]@]\:[<servername>]\::[<protocol>]\::[<port>]\::[<LUN>]\::<targetname>"
314 protocol defaults to "6", LUN defaults to "0".
316 If the "servername" field is provided by BOOTP or DHCP, then that
317 field is used in conjunction with other associated fields to contact
318 the boot server in the Boot stage (Section 7).  However, if the
319 "servername" field is not provided, then the "targetname" field is
320 then used in the Discovery Service stage in conjunction with other
321 associated fields.
323 http://tools.ietf.org/html/rfc4173
326 .ad l
327 .BR root= "\%iscsi:[username:password\:[:reverse:password]@]\:[<servername>]\::[<protocol>]\::[<port>]\::[<LUN>]\::<targetname>"
329 e.g. root=iscsi:192.168.50.1::::iqn.2009-06.dracut:target0
331 .ad l
332 If servername is an IPv6 address, it has to be put in brackets.
333  e.g. 
334   root=iscsi:[2001:DB8::1]::::iqn.2009-06.dracut:target0
336 .ad l
337 .BR root= ??? " netroot=" "\%iscsi:[username:password[:reverse:password]@]\:[<servername>]\::[<protocol>]\::[<port>]\::[<LUN>]\::<targetname> ..."
339 multiple netroot options allow setting up multiple iscsi disks
340  e.g. 
341   root=UUID=12424547
342   netroot=iscsi:192.168.50.1::::iqn.2009-06.dracut:target0
343   netroot=iscsi:192.168.50.1::::iqn.2009-06.dracut:target1
345 .ad l
346 If servername is an IPv6 address, it has to be put in brackets.
347  e.g.
348   netroot=iscsi:[2001:DB8::1]::::iqn.2009-06.dracut:target0
350 .ad l
351 .BR \%root= \%??? " \%iscsi_initiator=" \%<initiator> " \%iscsi_target_name=" "<target name>" " \%iscsi_target_ip=" "<target ip>" " \%iscsi_target_port=" "<target port>" " \%iscsi_target_group=" "<target group>" " \%iscsi_username=" "<username>" " \%iscsi_password=" <password> " \%iscsi_in_username=" "<in username>" " \%iscsi_in_password=" "<in password>"
353 manually specify all iscsistart parameter (see \fIiscsistart\ --help\fR)
356 .BR root= ??? " iscsi_firmware"
357 will read the iscsi parameter from the BIOS firmware
359 .SS FCoE
361 .BR netroot= fcoe:<interface|MAC>:<dcb|nodcb>
362 Try to connect to a FCoE SAN through the NIC specified by <interface> or <MAC>,
363 for the second argument, currently only nodcb is supported. Note letters in
364 the MAC-address must be lowercase!
366 .SS NBD
368 .BR root= nbd:<server>:<port>[:<fstype>][:<mountopts>]
369 mount nbd share from <server>
371 .BR root= dhcp 
372 with dhcp root-path=nbd:<server>:<port>[:<fstype>][:<mountopts>]
373 root=dhcp alone directs initrd to look at the DHCP root-path where NBD 
374 options can be specified.
375 This syntax is only usable in cases where you are directly mounting the volume 
376 as the rootfs.
379 .SS DASD
381 .BR rd_DASD_MOD= ....
382 same syntax as the kernel module parameter (s390 only)
385 .ad l
386 .BR rd_DASD= "\%<dasd adaptor device bus ID>\:[,readonly=X]\:[,use_diag=X]\:[,erplog=X]\:[,failfast=X]"
388 activate DASD device with the given adaptor device bus ID and setting the sysfs attributes
389 to the specified values
390 This parameter can be specified multiple times.
392 .SS ZFCP
394 .BR rd_ZFCP= "<zfcp adaptor device bus ID>,\:<WWPN>,\:<FCPLUN>"
395 rd_ZFCP can be specified multiple times on the kernel command line.
397 example: rd_ZFCP=0.0.4000,0x5005076300C213e9,0x5022000000000000 
399 .BR rd_NO_ZFCPCONF
400 ignore zfcp.conf included in the initramfs
402 .SS ZNET
404 .BR rd_ZNET= "<nettype>,<subchannels>,<options>"
405 rd_ZNET can be specified multiple times on the kernel command line. Examples:
406     rd_ZNET=qeth,0.0.0600,0.0.0601,0.0.0602,layer2=1,portname=foo
407     rd_ZNET=ctc,0.0.0600,0.0.0601,0.0.0602,protocol=bar
409 .SS "Plymouth Boot Splash"
411 .BR rd_NO_PLYMOUTH
412 do not start plymouth. This will not work with encrypted partitions.
414 .SH FILES
416 .B /var/log/dracut.log
418 .B /tmp/dracut.log
419 see \fBdracut.conf\fR(5)
421 .B /etc/dracut.conf
422 .SS "Configuration in the Initramfs"
423 .TP 
424 .B /conf/conf.d/
425 Any files found in /conf/conf.d/ will be sourced in the initramfs to 
426 set initial values. Command line options will override these values 
427 set in the configuration files.
429 .B /etc/cmdline
430 Can contain additional command line options.
432 .SH AUTHORS
434 Harald Hoyer <harald@redhat.com>
435 Victor Lowther <victor.lowther@gmail.com>
436 Warren Togami <wtogami@redhat.com>
437 Jeremy Katz <katzj@redhat.com>
438 Philippe Seewer <philippe.seewer@bfh.ch>
439 David Dillow <dave@thedillows.org>
441 .SH AVAILABILITY
442 The dracut command is part of the dracut package and is available from
443 http://sourceforge.net/apps/trac/dracut/wiki
445 .SH SEE ALSO
446 .BR dracut.conf (5)