{{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]}}

Options

-f, --force

-m, --modules

Specify a space-separated list of dracut modules to call when building the initramfs. Modules are located in /usr/share/dracut/modules.d.

-o, --omit

-o, --omit LIST

Omit a space-separated list of dracut modules.

-a, --add

-a, --add LIST

Add a space-separated list of dracut modules.

-d, --drivers

-d, --drivers LIST

Specify a space-separated list of kernel modules to include in the initramfs.

-k, --kmoddir

-k, --kmoddir {DIR}

Specify the directory, where to look for kernel modules.

--fwdir

--fwdir {DIR}

Specify additional directory, where to look for firmwares.

--kernel-only

--kernel-only

Only install kernel drivers and firmware files.

--no-kernel

--no-kernel

Do not install kernel drivers and firmware files.

--strip

--strip

Strip binaries in the initramfs (default).

--nostrip

--nostrip

No not strip binaries in the initramfs.

-h, --help

-h, --help

Display help text and exit.

--debug

--debug

Output debug information of the build process

-v, --verbose

v, --verbose

Verbose output during the build process

-c, --conf

-c, --conf FILE

Specify configuration file to use. Default: /etc/dracut.conf

-l, --local

-l, --local

Local mode. Use modules from the current working directory instead of the system-wide installed in /usr/share/dracut/modules.d. Useful when running dracut from a git checkout.

-H, --hostonly

-H, --hostonly

Host-Only mode: Install only what is needed for booting the local host instead of a generic host.

-i, --include

-i, --include SOURCE TARGET

Include the files in the SOURCE directory into the target directory in the final initramfs.

-I, --install

-I, --install LIST

Install the space separated list of files into the initramfs.

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.

iSCSI

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

NBD

root=nbd:<server>:<port>[:<fstype>][:<mountopts>]

Mount nbd share from <server>.

root=dhcp

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]

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.