Noam,

The problem is, that (if I recall correctly) nothing there is telling
lilo that it "failed". LILO just passes the parameters to the kernel,
loads the kernel etc and boots them.

If your kernel can load a shell and mount the /boot partition, then
you can write a simple script that if something is wrong, change
lilo.conf.

I have another idea for you, if you can use vmware server:

With VMWare server (and I assume xen, qemu etc...) you can boot a
machine and shut it down by a script, so you can write a script that
boots a vm machine with your kernel, and then the script wait X
seconds until it can ping (or open a socket).

If X seconds passed and you cannot ping (or open a socket), mount
(using vmware-mount.pl) the guest vm with the faulty kernel and change
lilo.conf, umount and reboot using the script.

Thanks,
Hetz

On Fri, Jun 6, 2008 at 7:22 PM, Noam Rathaus <[EMAIL PROTECTED]> 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?
>
> --
> Noam Rathaus
> CTO
> [EMAIL PROTECTED]
> http://www.beyondsecurity.com
>
> "Know that you are safe."
>
> Beyond Security Finalist for the "Red Herring 100 Global" Awards 2007
>
> =================================================================
> 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]
>
>



-- 
Skepticism is the lazy person's default position.
my blog (hebrew): http://benhamo.org

=================================================================
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