(→NFS) |
No edit summary |
||
Line 131: | Line 131: | ||
== DHCP == | == DHCP == | ||
{{admon/warning| You need to install dracut-network for this module.}} | |||
<pre>root=dhcp</pre> | <pre>root=dhcp</pre> | ||
{{admon/note|Get IP from dhcp server, root-path option from dhcp specifies root location.}} | {{admon/note|Get IP from dhcp server, root-path option from dhcp specifies root location.}} | ||
Line 150: | Line 150: | ||
== iSCSI == | == iSCSI == | ||
{{admon/warning| You need to install dracut-network for this module.}} | |||
<pre>root=iscsi:[<servername>]:[<protocol>]:[<port>]:[<LUN>]:<targetname>::</pre> | <pre>root=iscsi:[<servername>]:[<protocol>]:[<port>]:[<LUN>]:<targetname>::</pre> | ||
{{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.[http://tools.ietf.org/html/rfc4173 RFC4173]}} | {{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.[http://tools.ietf.org/html/rfc4173 RFC4173]}} | ||
Line 161: | Line 161: | ||
== NBD == | == NBD == | ||
{{admon/warning| You need to install dracut-network for this module.}} | |||
<pre>root=nbd:<server>:<port>[:<fstype>][:<mountopts>]</pre> | <pre>root=nbd:<server>:<port>[:<fstype>][:<mountopts>]</pre> | ||
{{admon/note|Mount nbd share from <server>.}} | {{admon/note|Mount nbd share from <server>.}} | ||
Line 169: | Line 169: | ||
== Network == | == Network == | ||
{{admon/warning| You need to install dracut-network for this module.}} | |||
<pre>ip=[dhcp|on|any]</pre> | <pre>ip=[dhcp|on|any]</pre> | ||
{{admon/note|2='''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.'''}} | {{admon/note|2='''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.'''}} |
Revision as of 09:24, 27 November 2009
Dracut
Creates an initial image used by the kernel for preloading the block device modules (such as IDE, SCSI or RAID) which are needed to access the root filesystem.
SYNOPSIS
dracut [OPTION]... <image> <kernel-version>
-f, --force
-f, --force
-m, --modules
-m, --modules LIST
-o, --omit
-o, --omit LIST
-a, --add
-a, --add LIST
-d, --drivers
-d, --drivers LIST
-k, --kmoddir
-k, --kmoddir {DIR}
--fwdir
--fwdir {DIR}
--kernel-only
--kernel-only
--no-kernel
--no-kernel
--strip
--strip
--nostrip
--nostrip
-h, --help
-h, --help
--debug
--debug
-v, --verbose
v, --verbose
-c, --conf
-c, --conf FILE
-l, --local
-l, --local
-H, --hostonly
-H, --hostonly
-i, --include
-i, --include SOURCE TARGET
-I, --install
-I, --install LIST
Dracut kernel command line parameters
The root filesystem used by the kernel is specified in the boot configuration file, as always. The traditional root=/dev/hda1 style device specification is allowed. If a label is used, as in root=LABEL=rootPart the initrd will search all available devices for an ext2 or ext3 filesystem with the appropriate label, and mount that device as the root filesystem. root=UUID=uuidnumber will mount the partition with that UUID as the root filesystem.
Limitations
- Command line length: 2048
- dhcp root-path: 255
Standard
init=<path to real init>
root=<path to blockdevice>
I18N
KEYBOARDTYPE=sun|pc
KEYTABLE=<keytable filename>
SYSFONT= Console font
SYSFONTACM= Unicode font map
UNIMAP= Unicode font map
LANG=<locale>
Bootsplash - plymouth
rd_plytheme=<theme name>
LVM
rd_NO_LVM
rd_LVM_VG=<volume group name>
crypto LUKS
rd_NO_LUKS
rd_LUKS_UUID=<luks uuid>
MD
rd_NO_MD
rd_NO_MDIMSM
rd_MD_UUID=<md uuid>
DMRAID
rd_NO_DM
rd_DM_UUID=<dmraid uuid>
DASD
dasd=....
DHCP
root=dhcp
NFS
root=[<server-ip>:]<root-dir>[:<nfs-options>]
root=nfs:[<server-ip>:]<root-dir>[:<nfs-options>]
root=nfs4:[<server-ip>:]<root-dir>[:<nfs-options>]
root=dhcp root-path=<server-ip>:<root-dir>[,<nfs-options>]
root=dhcp root-path=nfs:<server-ip>:<root-dir>[,<nfs-options>]
root=dhcp root-path=nfs4:<server-ip>:<root-dir>[,<nfs-options>]
root=/dev/nfs nfsroot=[<server-ip>:]<root-dir>[,<nfs-options>]
iSCSI
root=iscsi:[<servername>]:[<protocol>]:[<port>]:[<LUN>]:<targetname>::
root=iscsi:[<servername>]:[<protocol>]:[<port>]:[<LUN>]:<targetname>
root=??? netroot=iscsi:[<servername>]:[<protocol>]:[<port>]:[<LUN>]:<targetname> ...
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
Network
ip=[dhcp|on|any]
ip=<interface>:[dhcp|on|any]
ip=<client-IP-number>:[<server-id>]:<gateway-IP-number>:<netmask>:<client-hostname>:<interface>:{none|off}
Misc
rdblacklist=<modulename>
Debug
rdshell
rdinitdebug
rdbreak=[pre-udev|pre-mount|mount|pre-pivot|]
rdudevinfo
rdudevdebug
rdnetdebug
Configuration in initrd
/etc/conf.d/*
Dracut-catimages
Creates initial ramdisk image by concatenating several images from the command line and /boot/dracut/
SYNOPSIS
dracut-catimages [OPTION]... <initramfs> <base image> [<image>...]
-f, --force
-f, --force
-i, --imagedir
-i, --imagedir
-o, --overlaydir
-o, --overlaydir
--nooverlay
--nooverlay
--noimagedir
--noimagedir
-h, --help
-h, --help
--debug
--debug
-v, --verbose
-v, --verbose
Dracut-gencmdline
Generate the kernel command line for the local host.
SYNOPSIS
dracut-gencmdline