Re: init (/rescue/sh) died

From: Konstantin Belousov <kostikbel_at_gmail.com>
Date: Mon, 22 Aug 2022 15:16:52 UTC
On Mon, Aug 22, 2022 at 02:56:47PM +0000, Bjoern A. Zeeb wrote:
> Hi,
> 
> I am trying to get some arm64 up and running a bit but cannot use
> loader. I have an MD_ROOT embedded in the kernel with /rescue on it.
> I set INIT_PATH=/rescue/sh .
> 
> However that doesn't seem to work:
> 
> start_init: trying /rescue/sh
> init died (signal 0, exit 0)
> panic: Going nowhere without my init!
> 
> Anyone any ideas?

Kernel does not set up the standard file descriptors for stdin/out/err
for init.  When you try to directly exec /rescue/sh (or /bin/sh), it cannot
perform any io.