Add drivers to initrd
I have posted earlier in threads and my prob is solved to an extent. I added ata_piix module in initrd by: mkinitrd --preload ata_piix initrd.version kernel version
then I copied it into my usb. when I started installing from usb it gave me errors:
Unable to find device-mapper major/minor
File descriptor 3 left open
No volume found /dev/mapper/control:open failed
No such file or directory
/bin/lvm exited abnormally
Is device-mapper driver missing from kernel
Now I know the problem and I want to add usb driver as module in initrd
But I m not getting the exact syntax
Kindly help me out
If you know what modules you need inserted, the syntax should be similar to what you listed above but with an '=':
U know what this is the main problem that I somehow not understanding which all modules to add.
One more help I need. If i have module name as ata_piix
then the syntax wud be
mkinitrd --preload=ata_piix --preload ata_piix <initrd-version> <kernel version>
No, use --preload=<module name1> --preload=<module name2> <initrd_version> <kernel version>
You said you needed another module included. The example given in post 2 was for including the second module. You can use the --preload option again for a third option as well. On some systems, there is a config file where you can enter which modules you need. Look in /etc/sysconfig/kernel and see if it's there.
Mkinitrd is usually a script program and fine tuned for each distro for their particular needs. For example, some distro's produced initrd files that are compressed ext2 filesytems, while others use compressed cpio archives.
You can also take the existing initrd and add your own linuxrc to it that will load the module:
|All times are GMT -5. The time now is 06:18 PM.|