No we are ready to install our kernel:
fcmaster01:~# apt-get install kernel-image-2.4.18-1-k7
...
Then edit your lilo.conf. Don'f forget the "initrd" line and put "append="devfs=mount" to your new kernel entry.
Important
You need devfs mount for starting raid in initrd !
Also you have to install devfsd:
fcmaster01:~# apt-get install devfsd
...
Here is my lilo.conf:
fcmaster01:~# cat /etc/lilo.conf
lba32
boot=/dev/hda
root=/dev/hdc1
install=/boot/boot-menu.b
map=/boot/map
# message=/boot/bootmess.txt
prompt
# single-key
delay=20
timeout=50
vga=normal
default=Linux
image=/vmlinuz
append="devfs=mount"
label=Linux
initrd=/initrd.img
read-only
# restricted
# alias=1
image=/vmlinuz.old
label=LinuxOLD
read-only
optional
# restricted
# alias=2
fcmaster01:~#
Tip
If you are working over network don't forget to pu the proper module for your network card in "/etc/modules"
Then run lilo and if all is right reboot your system.
fcmaster01:~# lilo
Added Linux *
Added LinuxOLD
fcmaster01:~# reboot
...
After your system is up again you can remove kernel bf2.4 from disk:
fcmaster01:~# rm -rf /vmlinuz.old /boot/*bf2.4 /lib/modules/2.4.18-bf2.4/
and from "/etc/lilo.conf"