Subject: Re: kern/start_init()/init_main.c doesn't care for /rescue ?
To: None <tech-kern@netbsd.org>
From: Ian Zagorskih <ianzag@megasignal.com>
List: tech-kern
Date: 07/09/2004 16:40:01
On Friday 09 July 2004 16:29, 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.

I agree, but probably different exit codes from init can help do distinguish 
good/bad termination ?

// wbr