]> git.ipfire.org Git - thirdparty/dracut.git/blame - dracut.cmdline.7.asc
Add vlan support in network module
[thirdparty/dracut.git] / dracut.cmdline.7.asc
CommitLineData
888d53f2
HH
1DRACUT.CMDLINE(7)
2=================
3:doctype: manpage
4:man source: dracut
5:man manual: dracut
6
7NAME
8----
9dracut.cmdline - dracut kernel command line options
10
11DESCRIPTION
12-----------
13The root device used by the kernel is specified in the boot configuration
14file on the kernel command line, as always.
15
16The traditional _root=/dev/sda1_ style device specification is allowed, but not
17encouraged. The root device should better be identified by LABEL or UUID. If a
18label is used, as in _root=LABEL=<label_of_root>_ the initramfs will search all
19available devices for a filesystem with the appropriate label, and mount that
20device as the root filesystem. _root=UUID=<uuidnumber>_ will mount the partition
21with that UUID as the root filesystem.
22
23In the following all kernel command line parameters, which are processed by
24dracut, are described.
25
26"rd.*" parameters mentioned without "=" are boolean parameters. They can be
27turned on/off by setting them to {0|1}. If the assignment with "=" is missing
28"=1" is implied. For example _rd.info_ can be turned off with _rd.info=0_ or
29turned on with _rd.info=1_ or _rd.info_. The last value in the kernel command
30line is the value, which is honored.
31
32Standard
33~~~~~~~~
34**init=**_<path to real init>_::
35 specify the path to the init programm to be started after the initramfs has
36 finished
37
38**root=**_<path to blockdevice>_::
39 specify the block device to use as the root filesystem.
40+
41E.g.:
42+
43----
44root=/dev/sda1
45root=/dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:1:0-part1
46root=/dev/disk/by-label/Root
47root=LABEL=Root
48root=/dev/disk/by-uuid/3f5ad593-4546-4a94-a374-bcfb68aa11f7
49root=UUID=3f5ad593-4546-4a94-a374-bcfb68aa11f7
50----
51
52**rootfstype=**_<filesystem type>_:: "auto" if not specified, e.g.:
53+
54----
55rootfstype=ext3
56----
57
58**rootflags=**_<mount options>_::
59 specify additional mount options for the root filesystem. If not set,
60 _/etc/fstab_ of the real root will be parsed for special mount options and
61 mounted accordingly.
62
63**rd.fstab=0**::
64 do not honor special mount options for the root filesystem found in
65 _/etc/fstab_ of the real root.
66
97903dfc
HH
67**resume=**_<path to resume partition>_
68+
69E.g.:
70+
71----
72resume=/dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:1:0-part1
73resume=/dev/disk/by-uuid/3f5ad593-4546-4a94-a374-bcfb68aa11f7
74resume=UUID=3f5ad593-4546-4a94-a374-bcfb68aa11f7
75----
76
77
888d53f2
HH
78Misc
79~~~~
80**rd.driver.blacklist=**_<drivername>[,<drivername>,...]_::
81 do not load kernel module <drivername>. This parameter can be specified
82 multiple times.
83
84**rd.driver.pre=**_<drivername>[,<drivername>,...]_::
85 force loading kernel module <drivername>. This parameter can be specified
86 multiple times.
87
88**rd.driver.post=**_<drivername>[,<drivername>,...]_::
89 force loading kernel module <drivername> after all automatic loading modules
90 have been loaded. This parameter can be specified multiple times.
91
888d53f2
HH
92[[dracutkerneldebug]]
93Debug
94~~~~~
95**rd.info**::
96 print informational output though "quiet" is set
97
98**rd.shell**::
99 allow dropping to a shell, if root mounting fails
100
101**rd.debug**::
102 set -x for the dracut shell and logs to dmesg, console and
103 _/run/initramfs/init.log_
104
105**rd.break**::
106 drop to a shell at the end
107
eef7649e 108**rd.break=**_{cmdline|pre-udev|pre-trigger|initqueue|pre-mount|mount|pre-pivot|cleanup}_::
888d53f2
HH
109 drop to a shell on defined breakpoint
110
111**rd.udev.info**::
112 set udev to loglevel info
113
114**rd.udev.debug**::
115 set udev to loglevel debug
116
117I18N
118~~~~
119**vconsole.keymap=**_<keymap base file name>_::
120 keyboard translation table loaded by loadkeys; taken from keymaps directory;
121 will be written as KEYMAP to _/etc/vconsole.conf_ in the initramfs, e.g.:
122+
123----
124vconsole.keymap=de-latin1-nodeadkeys
125----
126
127**vconsole.keymap.ext=**_<list of keymap base file names>_::
128 list of extra keymaps to bo loaded (sep. by space); will be written as
129 EXT_KEYMAP to _/etc/vconsole.conf_ in the initramfs
130
131**vconsole.unicode**[=_{0|1}_]::
132 boolean, indicating UTF-8 mode; will be written as UNICODE to
133 _/etc/vconsole.conf_ in the initramfs
134
135**vconsole.font=**_<font base file name>_::
136 console font; taken from consolefonts directory; will be written as FONT to
137 _/etc/vconsole.conf_ in the initramfs; e.g.:
138+
139----
140vconsole.font=LatArCyrHeb-16
141----
142
143**vconsole.font.map=**_<console map base file name>_::
144 see description of '-m' parameter in setfont manual; taken from consoletrans
145 directory; will be written as FONT_MAP to _/etc/vconsole.conf_ in the
146 initramfs
147
148**vconsole.font.unimap=**_<unicode table base file name>_::
149 see description of '-u' parameter in setfont manual; taken from unimaps
150 directory; will be written as FONT_UNIMAP to _/etc/vconsole.conf_ in the
151 initramfs
152
153**locale.LANG=**_<locale>_::
154 taken from the environment; if no UNICODE is defined we set its value in
155 basis of LANG value (whether it ends with ".utf8" (or similar) or not); will
156 be written as LANG to _/etc/locale.conf_ in the initramfs; e.g.:
157+
158----
159locale.LANG=pl_PL.utf8
160----
161
162**locale.LC_ALL=**_<locale>_::
163 taken from the environment; will be written as LC_ALL to _/etc/locale.conf_
164 in the initramfs
165
166LVM
167~~~
168**rd.lvm=0**::
169 disable LVM detection
170
171**rd.lvm.vg=**_<volume group name>_::
172 only activate the volume groups with the given name. rd.lvm.vg can be
173 specified multiple times on the kernel command line.
174
175**rd.lvm.lv=**_<logical volume name>_::
176 only activate the logical volumes with the given name. rd.lvm.lv can be
177 specified multiple times on the kernel command line.
178
179**rd.lvm.conf=0**::
180 remove any _/etc/lvm/lvm.conf_, which may exist in the initramfs
181
182crypto LUKS
183~~~~~~~~~~~
184**rd.luks=0**::
185 disable crypto LUKS detection
186
187**rd.luks.uuid=**_<luks uuid>_::
188 only activate the LUKS partitions with the given UUID. Any "luks-" of the
189 LUKS UUID is removed before comparing to _<luks uuid>_.
190 The comparisons also matches, if _<luks uuid>_ is only the beginning of the
191 LUKS UUID, so you don't have to specify the full UUID.
192 This parameter can be specified multiple times.
193
194**rd.luks.crypttab=0**::
195 do not check, if LUKS partition is in _/etc/crypttab_
196
197crypto LUKS - key on removable device support
198~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
199**rd.luks.key=**_<keypath>:<keydev>:<luksdev>_::
200 _keypath_ is a path to key file to look for. It's REQUIRED. When _keypath_ ends with '.gpg' it's considered to be key encrypted symmetrically with GPG. You will be prompted for password on boot. GPG support comes with 'crypt-gpg' module which needs to be added explicitly.
201+
202_keydev_ is a device on which key file resides. It might be kernel name of devices (should start with "/dev/"), UUID (prefixed with "UUID=") or label (prefix with "LABEL="). You don't have to specify full UUID. Just its beginning will suffice, even if its ambiguous. All matching devices will be probed. This parameter is recommended, but not required. If not present, all block devices will be probed, which may significantly increase boot time.
203+
204If _luksdev_ is given, the specified key will only be applied for that LUKS device. Possible values are the same as for _keydev_. Unless you have several LUKS devices, you don't have to specify this parameter. The simplest usage is:
205+
206----
207rd.luks.key=/foo/bar.key
208----
209+
210As you see, you can skip colons in such a case.
211
212MD RAID
213~~~~~~~
214**rd.md=0**::
215 disable MD RAID detection
216
217**rd.md.imsm=0**::
218 disable MD RAID for imsm/isw raids, use DM RAID instead
219
220**rd.md.ddf=0**::
221 disable MD RAID for SNIA ddf raids, use DM RAID instead
222
223**rd.md.conf=0**::
224 ignore mdadm.conf included in initramfs
225
226**rd.md.waitclean=1**::
227 wait for any resync, recovery, or reshape activity to finish before continuing
228
229**rd.md.uuid=**_<md raid uuid>_::
230 only activate the raid sets with the given UUID. This parameter can be
231 specified multiple times.
232
233DM RAID
234~~~~~~~
235**rd.dm=0**::
236 disable DM RAID detection
237
238**rd.dm.uuid=**_<dm raid uuid>_::
239 only activate the raid sets with the given UUID. This parameter can be
240 specified multiple times.
241
242FIPS
243~~~~
244**rd.fips**::
245 enable FIPS
246
247**boot=**_<boot device>_::
248 specify the device, where /boot is located. e.g.
249+
250----
251boot=/dev/sda1
252boot=/dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:1:0-part1
253boot=UUID=<uuid>
254boot=LABEL=<label>
255----
256
257**rd.fips.skipkernel**::
258 skip checksum check of the kernel image. Useful, if the kernel image is not
259 in a separate boot partition.
260
261Network
262~~~~~~~
263**ip=**_{dhcp|on|any|dhcp6|auto6|ibft}_::
264 dhcp|on|any::: get ip from dhcp server from all interfaces. If root=dhcp, loop
265 sequentially through all interfaces (eth0, eth1, ...) and use the first with
266 a valid DHCP root-path.
267
268 auto6::: IPv6 autoconfiguration
269
270 dhcp6::: IPv6 DHCP
271
272 ibft::: iBFT autoconfiguration
273
990e945f 274**ip=**_<interface>_:_{dhcp|on|any|dhcp6|auto6}_[:[_<mtu>_][:_<macaddr>_]]::
888d53f2
HH
275 This parameter can be specified multiple times.
276+
277dhcp|on|any|dhcp6::: get ip from dhcp server on a specific interface
278auto6::: do IPv6 autoconfiguration
990e945f 279<macaddr>::: optionally set <macaddr> on the <interface>
888d53f2 280
990e945f 281**ip=**_<client-IP>_:_<server-IP>_:_<gateway-IP>_:_<netmask>_:_<client_hostname>_:_<interface>_:_{none|off|dhcp|on|any|dhcp6|auto6|ibft}_[:[_<mtu>_][:_<macaddr>_]]::
888d53f2
HH
282 explicit network configuration. If you want do define a IPv6 address, put it
283 in brackets (e.g. [2001:DB8::1]). This parameter can be specified multiple
284 times.
990e945f
HH
285+
286<macaddr>::: optionally set <macaddr> on the <interface>
888d53f2
HH
287
288**ifname=**_<interface>_:_<MAC>_::
289 Assign network device name <interface> (ie eth0) to the NIC with MAC <MAC>.
290 Note: If you use this option you _must_ specify an ifname= argument for all
291 interfaces used in ip= or fcoe= arguments. This parameter can be specified
292 multiple times.
293
294**bootdev=**_<interface>_::
295 specify network interface to use routing and netroot information from.
296 Required if multiple ip= lines are used.
297
298**nameserver=**__<IP>__ [**nameserver=**__<IP>__ ...]::
299 specify nameserver(s) to use
300
301**biosdevname=0**::
302 boolean, turn off biosdevname network interface renaming
303
304**rd.neednet=1**::
305 boolean, bring up network even without netroot set
306
307NFS
308~~~
309**root=**[_<server-ip>_:]_<root-dir>_[:_<nfs-options>_]::
310 mount nfs share from <server-ip>:/<root-dir>, if no server-ip is given, use
311 dhcp next_server. if server-ip is an IPv6 address it has to be put in
312 brackets, e.g. [2001:DB8::1]. NFS options can be appended with the prefix
313 ":" or "," and are seperated by ",".
314
315**root=**nfs:[_<server-ip>_:]_<root-dir>_[:_<nfs-options>_], **root=**nfs4:[_<server-ip>_:]_<root-dir>_[:_<nfs-options>_], **root=**_{dhcp|dhcp6}_::
316 root=dhcp alone directs initrd to look at the DHCP root-path where NFS
317 options can be specified.
318+
319----
320 root-path=<server-ip>:<root-dir>[,<nfs-options>]
321 root-path=nfs:<server-ip>:<root-dir>[,<nfs-options>]
322 root-path=nfs4:<server-ip>:<root-dir>[,<nfs-options>]
323----
324
325**root=**_/dev/nfs_ nfsroot=[_<server-ip>_:]_<root-dir>_[:_<nfs-options>_]::
326 _Deprecated!_ kernel Documentation_/filesystems/nfsroot.txt_ defines this
327 method. This is supported by dracut, but not recommended.
328
329**rd.nfs.domain=**_<NFSv4 domain name>_::
330 Set the NFSv4 domain name. Will overwrite the settings in _/etc/idmap.conf_.
331
332iSCSI
333~~~~~
ac3f1c6e 334**root=**iscsi:[_<username>_:_<password>_[:_<reverse>_:_<password>_]@][_<servername>_]:[_<protocol>_]:[_<port>_][:[_<iscsi_iface_name>_]:[_<netdev_name>_]]:[_<LUN>_]:_<targetname>_::
888d53f2
HH
335 protocol defaults to "6", LUN defaults to "0". If the "servername" field is
336 provided by BOOTP or DHCP, then that field is used in conjunction with other
337 associated fields to contact the boot server in the Boot stage. However, if
338 the "servername" field is not provided, then the "targetname" field is then
339 used in the Discovery Service stage in conjunction with other associated
340 fields. See
341 link:$$http://tools.ietf.org/html/rfc4173#section-5$$[rfc4173].
342 e.g.:
343+
344----
345root=iscsi:192.168.50.1::::iqn.2009-06.dracut:target0
346----
347+
348If servername is an IPv6 address, it has to be put in brackets. e.g.:
349+
350----
351root=iscsi:[2001:DB8::1]::::iqn.2009-06.dracut:target0
352----
353
ac3f1c6e 354**root=**_???_ **netroot=**iscsi:[_<username>_:_<password>_[:_<reverse>_:_<password>_]@][_<servername>_]:[_<protocol>_]:[_<port>_][:[_<iscsi_iface_name>_]:[_<netdev_name>_]]:[_<LUN>_]:_<targetname>_ ...::
888d53f2
HH
355 multiple netroot options allow setting up multiple iscsi disks. e.g.:
356+
357----
358root=UUID=12424547
359netroot=iscsi:192.168.50.1::::iqn.2009-06.dracut:target0
360netroot=iscsi:192.168.50.1::::iqn.2009-06.dracut:target1
361----
362+
363If servername is an IPv6 address, it has to be put in brackets. e.g.:
364+
365----
366netroot=iscsi:[2001:DB8::1]::::iqn.2009-06.dracut:target0
367----
368
369**root=**_???_ **rd.iscsi.initiator=**_<initiator>_ **rd.iscsi.target.name=**_<target name>_ **rd.iscsi.target.ip=**_<target ip>_ **rd.iscsi.target.port=**_<target port>_ **rd.iscsi.target.group=**_<target group>_ **rd.iscsi.username=**_<username>_ **rd.iscsi.password=**_<password>_ **rd.iscsi.in.username=**_<in username>_ **rd.iscsi.in.password=**_<in password>_::
370 manually specify all iscsistart parameter (see **+iscsistart --help+**)
371
372**root=**_???_ **netroot=**iscsi **rd.iscsi.firmware=1**::
373 will read the iscsi parameter from the BIOS firmware
374
b48f5e84 375**rd.iscsi.param=**_<param>_::
8d51acbb
HH
376 <param> will be passed as "--param <param>" to iscsistart.
377 This parameter can be specified multiple times.
378 e.g.:
379+
380----
b48f5e84 381"netroot=iscsi iscsi_firmware rd.iscsi.param=node.session.timeo.replacement_timeout=30"
8d51acbb
HH
382----
383+
384will result in
385+
386----
387iscsistart -b --param node.session.timeo.replacement_timeout=30
388----
389
888d53f2
HH
390FCoE
391~~~~
392**fcoe=**_<edd|interface|MAC>_:_{dcb|nodcb}_::
393 Try to connect to a FCoE SAN through the NIC specified by _<interface>_ or
394 _<MAC>_ or EDD settings. For the second argument, currently only nodcb is
395 supported. This parameter can be specified multiple times. Note: letters in
396 the MAC-address must be lowercase!
397
398NBD
399~~~
400**root=**??? **netroot=**nbd:_<server>_:_<port>_[:_<fstype>_[:_<mountopts>_[:_<nbdopts>_]]]::
401 mount nbd share from <server>
402
403**root=dhcp** with **dhcp** **root-path=**nbd:_<server>_:_<port>_[:_<fstype>_[:_<mountopts>_[:_<nbdopts>_]]]::
404 root=dhcp alone directs initrd to look at the DHCP root-path where NBD
405 options can be specified. This syntax is only usable in cases where you are
406 directly mounting the volume as the rootfs.
407
408DASD
409~~~~
410**rd.dasd_mod.dasd=**....::
411 same syntax as the kernel module parameter (s390 only)
412
413**rd.dasd=**_<dasd_adaptor device bus ID>_[,readonly=_X_][,use_diag=_X_][,erplog=_X_]::
414 activate DASD device with the given adaptor device bus ID and setting the
415 sysfs attributes to the specified values. This parameter can be specified
416 multiple times.
417
418ZFCP
419~~~~
420**rd.zfcp=**_<zfcp adaptor device bus ID>_,_<WWPN>_,_<FCPLUN>_::
421 rd.zfcp can be specified multiple times on the kernel command line. e.g.:
422+
423----
424rd.zfcp=0.0.4000,0x5005076300C213e9,0x5022000000000000
425----
426
427**rd.zfcp.conf=0**::
428 ignore zfcp.conf included in the initramfs
429
430ZNET
431~~~~
432**rd.znet=**_<nettype>_,_<subchannels>_,_<options>_::
433 rd.znet can be specified multiple times on the kernel command line. e.g.:
434+
435----
436rd.znet=qeth,0.0.0600,0.0.0601,0.0.0602,layer2=1,portname=foo
437rd.znet=ctc,0.0.0600,0.0.0601,0.0.0602,protocol=bar
438----
439
440Plymouth Boot Splash
441~~~~~~~~~~~~~~~~~~~~
442**plymouth.enable=0**::
443 disable the plymouth bootsplash completly.
444
445**rd.plymouth=0**::
446 disable the plymouth bootsplash only for the initramfs.
447
448Kernel keys
449~~~~~~~~~~~
450**masterkey=**_<kernel master key path name>_::
451 Set the path name of the kernel master key. e.g.:
452+
453----
454masterkey=/etc/keys/kmk-trusted.blob
455----
456
457**masterkeytype=**_<kernel master key type>_::
458 Set the type of the kernel master key. e.g.:
459+
460----
461masterkeytype=trusted
462----
463
464**evmkey=**_<EVM key path name>_::
465 Set the path name of the EVM key. e.g.:
466+
467----
468evmkey=/etc/keys/evm-trusted.blob
469----
470
471**ecryptfskey=**_<eCryptfs key path name>_::
472 Set the path name of the eCryptfs key. e.g.:
473+
474----
475ecryptfskey=/etc/keys/ecryptfs-trusted.blob
476----
477
478Deprecated, renamed Options
479~~~~~~~~~~~~~~~~~~~~~~~~~~~
480Here is a list of options, which were used in dracut prior to version 008, and their new replacement.
481
482rdbreak:: rd.break
483
484rd_CCW:: rd.ccw
485
486rd_DASD_MOD:: rd.dasd_mod.dasd
487
488rd_DASD:: rd.dasd
489
490rdinitdebug rdnetdebug:: rd.debug
491
492rd_NO_DM:: rd.dm=0
493
494rd_DM_UUID:: rd.dm.uuid
495
496rdblacklist:: rd.driver.blacklist
497
498rdinsmodpost:: rd.driver.post
499
500rdloaddriver:: rd.driver.pre
501
502rd_NO_FSTAB:: rd.fstab=0
503
504rdinfo:: rd.info
505
506check:: rd.live.check
507
508rdlivedebug:: rd.live.debug
509
510live_dir:: rd.live.dir
511
512liveimg:: rd.live.image
513
514overlay:: rd.live.overlay
515
516readonly_overlay:: rd.live.overlay.readonly
517
518reset_overlay:: rd.live.overlay.reset
519
520live_ram:: rd.live.ram
521
522rd_NO_CRYPTTAB:: rd.luks.crypttab=0
523
524rd_LUKS_KEYDEV_UUID:: rd.luks.keydev.uuid
525
526rd_LUKS_KEYPATH:: rd.luks.keypath
527
528rd_NO_LUKS:: rd.luks=0
529
530rd_LUKS_UUID:: rd.luks.uuid
531
532rd_NO_LVMCONF:: rd.lvm.conf
533
534rd_LVM_LV:: rd.lvm.lv
535
536rd_NO_LVM:: rd.lvm=0
537
538rd_LVM_SNAPSHOT:: rd.lvm.snapshot
539
540rd_LVM_SNAPSIZE:: rd.lvm.snapsize
541
542rd_LVM_VG:: rd.lvm.vg
543
544rd_NO_MDADMCONF:: rd.md.conf=0
545
546rd_NO_MDIMSM:: rd.md.imsm=0
547
548rd_NO_MD:: rd.md=0
549
550rd_MD_UUID:: rd.md.uuid
551
552rd_NFS_DOMAIN:: rd.nfs.domain
553
554iscsi_initiator:: rd.iscsi.initiator
555
556iscsi_target_name:: rd.iscsi.target.name
557
558iscsi_target_ip:: rd.iscsi.target.ip
559
560iscsi_target_port:: rd.iscsi.target.port
561
562iscsi_target_group:: rd.iscsi.target.group
563
564iscsi_username:: rd.iscsi.username
565
566iscsi_password:: rd.iscsi.password
567
568iscsi_in_username:: rd.iscsi.in.username
569
570iscsi_in_password:: rd.iscsi.in.password
571
572iscsi_firmware:: rd.iscsi.firmware=0
573
574rd_NO_PLYMOUTH:: rd.plymouth=0
575
576rd_retry:: rd.retry
577
578rdshell:: rd.shell
579
580rd_NO_SPLASH:: rd.splash
581
582rdudevdebug:: rd.udev.debug
583
584rdudevinfo:: rd.udev.info
585
586rd_NO_ZFCPCONF:: rd.zfcp.conf=0
587
588rd_ZFCP:: rd.zfcp
589
590rd_ZNET:: rd.znet
591
592KEYMAP:: vconsole.keymap
593
594KEYTABLE:: vconsole.keymap
595
596SYSFONT:: vconsole.font
597
598CONTRANS:: vconsole.font.map
599
600UNIMAP:: vconsole.font.unimap
601
602UNICODE:: vconsole.unicode
603
604EXT_KEYMAP:: vconsole.keymap.ext
605
606Configuration in the Initramfs
607~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
608_/etc/conf.d/_::
609 Any files found in _/etc/conf.d/_ will be sourced in the initramfs to
610 set initial values. Command line options will override these values
611 set in the configuration files.
612
613_/etc/cmdline_::
614 Can contain additional command line options.
615
616_/etc/cmdline.d/*.conf_::
617 Can contain additional command line options.
618
619AUTHOR
620------
621*Harald Hoyer*::
622 Project Leader and Developer
623
624SEE ALSO
625--------
626*dracut*(8) *dracut.conf*(5)