Red Hat Linux 7.1: The Official Red Hat Linux Customization Guide | ||
---|---|---|
Prev | Chapter 16. Building a Custom Kernel | Next |
An initrd image is needed for loading your SCSI module at boot time. If you do not need an initrd image, do not make one and do not edit lilo.conf to include this image.
The /sbin/mkinitrd shell script can build a proper initrd image for your machine if the following conditions are met:
The loopback block device is available.
The /etc/modules.conf file has a line for your SCSI adapter; for example:
alias scsi_hostadapter BusLogic |
To build the new initrd image, run /sbin/mkinitrd with parameters such as this:
/sbin/mkinitrd /boot/initrd-2.4.2-0.1.21-12feb2001.img 2.4.2-0.1.21-12feb2001 |
In the above example, /boot/initrd-2.4.2-0.1.21-12feb2001.img is the filename of the new initrd image. 2.4.2-0.1.21-12feb2001 is the kernel whose modules (from /lib/modules) should be used in the initrd image. This is not necessarily the same as the version number of the currently running kernel.