customize initrd to boot it from network
Im trying to create a customized initrd image for
either recovery or installing OS on bare-metal
I want to customize initrd so that I can run my
application once vmlinuz loads initrd. (similar to dos
booting - dos runs autoexec.bat)
I followed following steps, but could not succeede:-
- downloaded & built linux 2.4 kernel source code.
- Built initrd using mkinitrd.
Now I want to customize initrd - so that i can modify
linuxrc script inside it to run my custom application
once initrd gets loaded.
To modify initrd - i tried mounting initrd image
at /mnt/initrd folder,
but received error
[root@rhel40-junk pt]# mount initrd /mnt/initrd -t
mount: wrong fs type, bad option, bad superblock on
or too many mounted file systems
(could this be the IDE device where you in fact
ide-scsi so that sr0 or sda or so is needed?)
I also tried network booting machine with built
bzImage & initrd, but
Kernel panic: VFS: Unable to mount root fs on 08:01
- Then I searched for ready to download initrd
recovery images on net:-
when i try to mount the initrd image downloaded from
It does not give me errors.