My situation is a little strange, but I'm hoping that someone will be able to provide a little insight.
I have a machine on which I would like to reinstall RedHat. The catch is that I would like to be able to perform the reinstall without having to sit in front of the machine to insert/eject a floppy or change a bios setting. I have serial console access to the machine and have kickstart set up such that I would normally insert the network install image and type "linux ks=nfs:(server ip):(kickstart file path)". So I figured that I could extract the kernel and the initrd from the bootnet.img file into my /boot directory, munge lilo and have what I want. Not quite.
Here's my current setup:
[root@steelphantom /boot]# ls -l !$
ls -l /boot/*reinst*
-rwxrwxr-x 1 root root 2048000 Jan 18 09:44 /boot/initrd-reinst
-rwxrwxr-x 1 root root 587970 Jan 18 09:43 /boot/vmlinuz-reinst
[root@steelphantom /boot]#
[root@steelphantom /boot]# cat /etc/lilo.conf
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
default=linux
serial=0,19200n8
image=/boot/vmlinuz-reinst
label=reinstall
ramdisk=2048
append="network ks=nfs:10.2.2.31:/space/ks/steelphantom initrd=initrd-reinst root=/dev/ram"
<other lilo.conf stuff removed>
With this config, I get a "Can't mount root device on 08:34". This makes sense since the vmlinuz from bootnet.img says that the rootdev is /dev/sdd4. I thought that specifying root= on the boot line overrides the kernel, but perhaps I'm specifying it incorrectly. I've tried leaving the initrd image compressed as well as other values for root, but neither seems to help.
Any suggestions are welcome.
|