Subject: Re: kern/start_init()/init_main.c doesn't care for /rescue ?
To: None <tech-kern@NetBSD.org>
From: Alan Barrett <apb@cequrux.com>
List: tech-kern
Date: 07/09/2004 11:43:43
On Fri, 09 Jul 2004, Luke Mewburn wrote:
>   | -> ld.elf.so exits due to unavailable library -> "init process
>   | terminated with exit code 1" -> panic -> ddb
> 
> 1. boot -a   (or equivalent for your platform)
> 2. Specify "/rescue/init" as the path to init.
> 3. Specify "/rescue/sh" as the shell for single user mode (this should be
>    the default).

It would probably be useful to add a discussion of this issue to the
init(8) man page, and to add some debugging hints to the "init died
(signal %d, exit %d)" panic message in kern/kern_exit.c.

It might also be reasonable to add "/rescue/init" to initpaths[] in
kern/init_main.c, although that wouldn't help in this particular
situation (because the problem was not a failure to exec init).

--apb (Alan Barrett)