Messages in this thread | | | Date | Sun, 2 Mar 2008 19:05:49 +0100 | From | "Guillaume Chazarain" <> | Subject | Re: [PATCH] chroot= as a new kernel parameter |
| |
On Mon, Mar 3, 2008 at 12:59 AM, Pawel Plociennik <paplociennik@gmail.com> 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
| |