I have a loadable module that I wish to insert before the init process is spawned. I can certainly do it in any of the run levels..i have tried that successfully, but is there a way where the module can be inserted before the init process is created, ie somewhere when the kernel is being loaded and before kernel creates init process.. how about initrd..is there a way to add a module here..I have come across someting to modify /linuxrc but i could not locate the file... ---abhi __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail
On Fri, 13 Aug 2004 01:08 pm, ABHISHEK GUJAR wrote:
I have a loadable module that I wish to insert before the init process is spawned. I can certainly do it in any of the run levels..i have tried that successfully, but is there a way where the module can be inserted before the init process is created, ie somewhere when the kernel is being loaded and before kernel creates init process..
how about initrd..is there a way to add a module here..I have come across someting to modify /linuxrc but i could not locate the file...
Linuxrc is INSIDE initrd, to see it:
cp /boot/initrd /tmp/initrd.gz
gunzip /tmp/initrd.gz
mount -o loop /tmp/initrd /mnt
less /mnt/linuxrc
But there is an easy way to put your load statement
and all its dependencies into linuxrc.
Add it to /etc/sysconfig/kernel INITRD_MODULES
and run mkinitrd
eg:
vi /etc/sysconfig/kernel
INITRD_MODULES="e100 reiserfs
participants (2)
-
ABHISHEK GUJAR
-
Michael James