From Fedora Project Wiki
< Dracut
(Created page with '= Dracut kernel command line parameters = == Limitations == * Command line length: 2048 * dhcp root-path: 255 == Configuration in initrd == * /conf/conf.d/* {{admon/not...') |
No edit summary |
||
Line 8: | Line 8: | ||
== Configuration in initrd == | == Configuration in initrd == | ||
* /conf/conf.d/* | |||
{{admon/note|Command line options can override values set here}} | {{admon/note|Command line options can override values set here}} | ||
Line 60: | Line 60: | ||
* root=??? iscsi_firmware:: | * root=??? iscsi_firmware:: | ||
NBD | == NBD == | ||
* root=nbd:<server>:<port>[:<fstype>][:<mountopts>] | |||
{{admon/note|Mount nbd share from <server>.}} | |||
* root=dhcp | |||
{{admon/note|root-path=nbd:<server>:<port>[:<fstype>][:<mountopts>] root=dhcp alone directs initrd to look at the DHCP root-path where NBD options can be specified. This syntax is only usable in cases where you are directly mounting the volume as the rootfs.]] | |||
== Network == | == Network == | ||
* ip=[dhcp|on|any] | * ip=[dhcp|on|any] | ||
{{admon/note|Get ip from dhcp server from all interfaces.If root=dhcp, loop sequentially through all interfaces | {{admon/note|Get ip from dhcp server from all interfaces.If root=dhcp, loop sequentially through all interfaces '(eth0, eth1, ...)' and use the first with a valid DHCP root-path.}} | ||
* ip=<interface>:[dhcp|on|any] | * ip=<interface>:[dhcp|on|any] | ||
{{admon/note|Get ip from dhcp server on a specific interface.}} | {{admon/note|Get ip from dhcp server on a specific interface.}} |
Revision as of 14:37, 2 July 2009
Dracut kernel command line parameters
Limitations
- Command line length: 2048
- dhcp root-path: 255
Configuration in initrd
- /conf/conf.d/*
Standard
- init=<path to real init>
- root=<path to blockdevice>
DHCP
- root=dhcp
NFSv3
- root=[<server-ip>:]<root-dir>[:<nfs-options>]
- root=dhcp
- root-path=<server-ip>:<root-dir>[,<nfs-options>]
- Deprecated root=/dev/nfs nfsroot=[<server-ip>:]<root-dir>[,<nfs-options>]
NFSv4 ¶
* root=nfs4:[<server-ip>:]<root-dir>[:<nfs-options>] o mount nfsv4 share from <server-ip>:/<root-dir> o if no server-ip is given, use dhcp next_server o nfs-options can be appended with the prefix ":" or "," * root=dhcp o root-path=nfs4:<server-ip>:<root-dir>[,<nfs-options>] o root=dhcp alone directs initrd to look at the DHCP root-path where NFS options can be specified.
iSCSI ¶
* root=iscsi:[<servername>]:[<protocol>]:[<port>]:[<LUN>]:<targetname>:: o protocol defaults to "6", LUN defaults to "0".
If the "servername" field is provided by BOOTP or DHCP, then that field is used in conjunction with other associated fields to contact the boot server in the Boot stage (Section 7). However, if the "servername" field is not provided, then the "targetname" field is then used in the Discovery Service stage in conjunction with other associated fields.
http://tools.ietf.org/html/rfc4173
* root=??? iscsiroot=...:: * root=??? iscsi_initiator= iscsi_target_name= iscsi_target_ip= iscsi_target_port= iscsi_target_group= iscsi_username= iscsi_password= iscsi_in_username= iscsi_in_password=:: * root=??? iscsi_firmware::
NBD
- root=nbd:<server>:<port>[:<fstype>][:<mountopts>]
- root=dhcp
{{admon/note|root-path=nbd:<server>:<port>[:<fstype>][:<mountopts>] root=dhcp alone directs initrd to look at the DHCP root-path where NBD options can be specified. This syntax is only usable in cases where you are directly mounting the volume as the rootfs.]]
Network
- ip=[dhcp|on|any]
- ip=<interface>:[dhcp|on|any]
- ip=<client-IP-number>:<gateway-IP-number>:<netmask>:<client-hostname>:<interface>:[dhcp|on|any|]
Misc
- rdblacklist=<modulename>
Debug ¶
* rdinitdebug o set -x for the dracut shell * rdbreak=[pre-udev|pre-mount|mount|pre-pivot|] o drop the shell on defined breakpoint * rdudevinfo o set udev to loglevel info * rdudevdebug o set udev to loglevel debug * rdnetdebug o debug network scripts in dracut