mkinitrd

From RaySoft

mkinitrd 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. mkinitrd automatically loads filesystem modules (such as ext3 and jbd), IDE modules, all scsi_hostadapter entries in /etc/modprobe.conf, and raid modules if the system's root partition is on RAID, which makes it simple to build and use kernels using modular device drivers.[1]

Documentation

Syntax

mkinitrd [PARAMETER] image kernel-version

Parameters

--builtin=MODULE
Act as if MODULE is built into the kernel being used. mkinitrd will not look for this module, and will not emit an error if it does not exist. This option may be used multiple times.
-f
Allows mkinitrd to overwrite an existing image file.
--nocompress
Normally the created initrd image is compressed with gzip. If this option is specified, the compression is skipped.
--omit-lvm-modules
Do not load any lvm modules, even if /etc/fstab expects them.
--omit-raid-modules
Do not load any RAID modules, even if /etc/fstab and /etc/raidtab expect them.
--omit-scsi-modules
Do not load any SCSI modules, including 'scsi_mod' and 'sd_mod' modules, even if they are present.
--preload=MODULE
Load the MODULE in the initial ramdisk image. The module gets loaded before any SCSI modules which are specified in /etc/modprobe.conf. This option may be used as many times as necessary.
--with=MODULE
Load the MODULE in the initial ramdisk image. The module gets loaded after any SCSI modules which are specified in /etc/modprobe.conf. This option may be used as many times as necessary.

References

  1. man 8 'mkinitrd'