Noam Rathaus wrote:
Hi,

I am looking for an option to tell Lilo to boot a certain kernel ONCE, and if it fails - to revert (after the reboot) to the previous one.

Is this possible?

lilo -D override_default
lilo -R the_command_line_to_run_once

So, after upgrade on a remote machine, the lilo.conf file usually points to the new kernel as default. I do:
lilo -D LinuxOLD
(so that now the default is the old kernel, despite the fact that lilo.conf says its the new one)
lilo -R Linux
(Next boot, lilo will behave as if I typed "Linux" on the command line, which is the name of the profile for the new kernel)

Reboot.

If everything goes fine, just run "lilo" with no parameters to make this the fixed setting.
If the machine doesn't boot, ask the hosting to reboot it.

Better yet, add "panic=10" to all your kernel command lines. This will cause the kernel to automatically reboot on panic after 10 seconds. Usually* that will be enough to make sure you can get by without your friendly neighborhood hosting's help.

* I say "usually" because it has already happened to me that the thing actually wrong with the new kernel was that the network driver didn't work. There was no panic, so panic= didn't help, but I still couldn't get to it remotely.

Shachar

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to