From Fedora Project Wiki
Line 32: Line 32:
 
{{admon/note| Kernel Documentation/filesystems/nfsroot.txt defines this method. This is supported by dracut but not recommended.}}
 
{{admon/note| Kernel Documentation/filesystems/nfsroot.txt defines this method. This is supported by dracut but not recommended.}}
  
NFSv4
+
== NFSv4 ==
  
    * root=nfs4:[<server-ip>:]<root-dir>[:<nfs-options>]
+
* root=nfs4:[<server-ip>:]<root-dir>[:<nfs-options>]
          o mount nfsv4 share from <server-ip>:/<root-dir>
+
{{admin/note|mount nfsv4 share from <server-ip>:/<root-dir>. If no server-ip is given, use dhcp next_server. nfs-options can be appended with the prefix ":" or ","  
          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=dhcp
 +
{{admon/note|root-path=nfs4:<server-ip>:<root-dir>[,<nfs-options>]. root=dhcp alone directs initrd to look at the DHCP root-path where NFS options can be specified.}}
  
    * root=iscsi:[<servername>]:[<protocol>]:[<port>]:[<LUN>]:<targetname>::
+
== iSCSI ==
          o protocol defaults to "6", LUN defaults to "0".
 
  
              If the "servername" field is provided by BOOTP or DHCP, then that
+
* root=iscsi:[<servername>]:[<protocol>]:[<port>]:[<LUN>]:<targetname>::
              field is used in conjunction with other associated fields to contact
+
{{admon/note|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
              the boot server in the Boot stage (Section 7).  However, if the
+
associated fields. [[http://tools.ietf.org/html/rfc4173 RFC4173]]
              "servername" field is not provided, then the "targetname" field is
+
* root=??? iscsiroot=...::
              then used in the Discovery Service stage in conjunction with other
+
* 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=::
              associated fields.
+
* root=??? iscsi_firmware::
 
 
              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 ==
 
== NBD ==

Revision as of 14:42, 2 July 2009

Dracut kernel command line parameters

Limitations

  • Command line length: 2048
  • dhcp root-path: 255

Configuration in initrd

  • /conf/conf.d/*
Note.png
Command line options can override values set here

Standard

  • init=<path to real init>
  • root=<path to blockdevice>
Note.png
Specify e.g. /dev/sda1 or /dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:1:0-part1

DHCP

  • root=dhcp
Note.png
Get IP from dhcp server, root-path option from dhcp specifies root location.

NFSv3

  • root=[<server-ip>:]<root-dir>[:<nfs-options>]
Note.png
Mount nfs share from <server-ip>:/<root-dir> If no server-ip is given use dhcp next_server. nfs-options can be appended with the prefix ":" or ","
  • root=dhcp
Note.png
  • root-path=<server-ip>:<root-dir>[,<nfs-options>]
  • Deprecated root=/dev/nfs nfsroot=[<server-ip>:]<root-dir>[,<nfs-options>]
Note.png
Kernel Documentation/filesystems/nfsroot.txt defines this method. This is supported by dracut but not recommended.

NFSv4

  • root=nfs4:[<server-ip>:]<root-dir>[:<nfs-options>]

{{admin/note|mount nfsv4 share from <server-ip>:/<root-dir>. If no server-ip is given, use dhcp next_server. nfs-options can be appended with the prefix ":" or ","

  • root=dhcp
Note.png

iSCSI

  • root=iscsi:[<servername>]:[<protocol>]:[<port>]:[<LUN>]:<targetname>::

{{admon/note|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. [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>]
Note.png
Mount nbd share from <server>.
  • root=dhcp
Note.png

Network

  • ip=[dhcp|on|any]
Note.png
  • ip=<interface>:[dhcp|on|any]
Note.png
Get ip from dhcp server on a specific interface.
  • ip=<client-IP-number>:<gateway-IP-number>:<netmask>:<client-hostname>:<interface>:[dhcp|on|any|]
Note.png
Explicit network configuration

Misc

  • rdblacklist=<modulename>
Note.png
TBD: do not load 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