Subject: Re: which init? (Was Re: HEADS UP: fully dynamic linked system now the default)
To: Martin Husemann <martin@duskware.de>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: current-users
Date: 09/26/2002 22:31:50
On Thu, Sep 26, 2002 at 10:29:04PM +0200, Martin Husemann wrote:
> On Thu, Sep 26, 2002 at 10:21:48PM +0200, Jaromir Dolecek wrote:
> 
> > Doesn't actually matter too much - the user could just run their
> > specially adjusted init (the source is available, after all).
> 
> Right. I think I've used something like this as /sbin/init:
> 
> --8<--
> #! /bin/sh
> exec /bin/sh < /dev/console > /dev/console 2>&1
> -->8--

But you still need to be able to write to the root filesystem.
If you can do this you can as well load your own kernel.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--