Modifying initrd.img for custom recovery disk
I am creating a new custom recovery disk(iso) from the RHEL5 iso.
For that, I am copying only the basic stuff from the RHEL5 iso such as "images" and "isolinux" folders which help to boot the system.
I am successfully able to boot from the custom iso I created.
Now I have one more requirement where I need to do auto loading of a kernel module(cifs.ko) at the boot time.
I tried the following. But did not succeed.
"I modified the initrd.img by copying the cifs.ko into the modules folder where all the kernel modules reside. By default cifs.ko was not there in that folder. But it did not auto load at boot time. I tried to insert some scripts as well. But all in vain."
One possible way I could find out from internet is that, the init script can be modified to insert an "insmod" command for the cifs module.
In normally booted system, the "/boot/initrd-2.6.18-92.el5PAE.img" contains the init which is an editable script.
But in my case, the init is not a script, rather than it is a binary. Because the initrd.img which is there in isolinux folder is having a init binary not a script. Hence I am not able to change it.
Is there any way to achieve my requirements?
Any idea in this area will be of great help.