Re: [PATCH] chroot= as a new kernel parameter
From: Guillaume Chazarain
Date: Sun Mar 02 2008 - 13:05:59 EST
On Mon, Mar 3, 2008 at 12:59 AM, Pawel Plociennik
<paplociennik@xxxxxxxxx> wrote:
> On Sunday 02 March 2008 11:00, Guillaume Chazarain wrote:
> > Wouldn't booting with 'init=/usr/sbin/chroot /path /sbin/init' achieve
> > the same effect?
> I think that procces which has pid 0 is a special procces
You mean pid 1, right? ;-)
> because it
> removes a *zombie* procceses so it is good to use a *dedicated*
> program for it such as a /sbin/init .
> /usr/sbin/chroot doesn't remove a *zombie* procceses :-(
Sure, but chroot should then exec /sbin/init as per the given kernel
command line. And then you run a real init.
I cannot try it as I don't have another distribution installed in a
subdirectory, but if you could test it we would quickly know if it
works or not.
Thanks.
--
Guillaume
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/