Subject: Re: kern/start_init()/init_main.c doesn't care for /rescue ?
To: None <tech-kern@NetBSD.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-kern
Date: 07/09/2004 15:46:30
On Fri, Jul 09, 2004 at 05:29:41AM -0400, der Mouse wrote:
> > BTW right, when i tried to run /sbin/init and it fails due to broken
> > libc i got kernel panic.  Would be nice to have a possibility to walk
> > through initpathes when init is found but during execution some error
> > happens.  Instead of just panic.
> 
> The trouble is, that error happens after init has been successfully
> started (as far as the kernel machinery is concerned), and thus there
> is nothing obvious to distinguish it from a case where everything
> starts and chugs along for days and _then_ init dies, in which case a
> panic is entirely appropriate.

You could use a timerout to set the panic mode after e.g. 1 second.

Joerg

> 
> /~\ The ASCII				der Mouse
> \ / Ribbon Campaign
>  X  Against HTML	       mouse@rodents.montreal.qc.ca
> / \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B
>