mkinitrd(8)

mkinitrd8

Is a compat wrapper, which calls dracut to generate an initramfs

Usage

mkinitrd [OPTION ...] [<initrd-image>] <kernel-version>

Overview

mkinitrd creates an initramfs image <initrd-image> for the kernel with version <kernel-version> by calling "dracut".

Important

If a more fine grained control over the resulting image is needed, "dracut" should be called directly.

Options

--version

print info about the version

-v, --verbose

increase verbosity level

-f, --force

overwrite existing initramfs file.

*--image-version

append the kernel version to the target image <initrd-image>-<kernel-version>.

--with=<module>

add the kernel module <module> to the initramfs.

--preload=<module>

preload the kernel module <module> in the initramfs before any other kernel modules are loaded. This can be used to ensure a certain device naming, which should in theory be avoided and the use of symbolic links in /dev is encouraged.

--nocompress

do not compress the resulting image.

--help

print a help message and exit.

Releases

7 releases since Debian 3.0 (Woody); the text changed 6 times.

  1. 3.0
  2. 3.1
  3. 4.0
  4. 8
  5. 9
  6. 10
  7. 11

--force since Debian 8 (Jessie); --help since Debian 8 (Jessie); --nocompress since Debian 8 (Jessie); --preload since Debian 8 (Jessie); --verbose since Debian 8 (Jessie); --version since Debian 8 (Jessie); --with since Debian 8 (Jessie); -f since Debian 8 (Jessie); -v since Debian 8 (Jessie).

--supported-host-version until Debian 4.0 (Etch); --supported-target-version until Debian 4.0 (Etch); -d until Debian 4.0 (Etch); -k until Debian 4.0 (Etch); -m until Debian 4.0 (Etch); -o until Debian 4.0 (Etch); -r until Debian 4.0 (Etch).

Availability

The mkinitrd command is part of the dracut package and is available from https://dracut.wiki.kernel.org

Authors

Harald Hoyer

From dracut-core 051-1 in Debian 11 (Bullseye). Parsed by carta from the page's man source.