Put this in image section for new kernel in lilo.conf
append="panic=15"
Then add a fallback=<command line>
fallback="Linux-old"
So it would look something like this:
Code:
image = /boot/vmlinuz
root = /dev/hda5
label = Linux
initrd = /boot/initrd
append="panic=15 reboot=warm"
read-only
fallback="Linux-old"
image = /boot/vmlinuz.old
root = /dev/hda5
label = Linux-old
append="panic=15 reboot=warm"
initrd = /boot/initrd.old
read-only
NOTE: I have never tried this but it is documented in
man lilo.conf
<edit> Yeah, it seems to work OK but you need to put this in a startup script somewhere:
lilo -R
That removes the fallback entry if you boot successfully. You could put it in /etc/rc.d/rc.local. If you don't have that line then every other time you boot you'll automatically boot into the fallback kernel.