[syslinux] modifying initrd.img to run custom application
pankaj takawale
pankaj_takawale at yahoo.com
Thu Dec 28 05:06:58 PST 2006
Im n/w booting machine with kernel - vmlinuz and
initrd initrd.img.
I copied vmlinuz & initrd.img from RHEL4 iso.
I want to modify initrd.img so that when 2nd stage
boot loader loads initrd, my custom application gets
executed.
linuxrc in initrd.img is sym-link to /sbin/init.
My steps:
1. Renamed linuxrc to linuxrc1
2. created new linuxrc script & invoked "/linuxrc1"
from script
(Once initialization is done - i can invoke my custom
application)
But I get "Kernel Panic" error while booting.
EXT2-fs: unable to read superblock
isofs_fill_super: bread failed, dev=md1,
iso_blknum=16, block=32
kernel panic - not syncing: VFS: Unable to mount root
fs on unknown-block(9,1)
I also tried creating initrd.img from scratch from
mkird script mentioned at
http://www-128.ibm.com/developerworks/linux/library/l-initrd.html.
But I get same error.
Please suggest the correct steps to modify initrd.img
so that I can invoke my custom application.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Syslinux
mailing list