lkml.org 
[lkml]   [2008]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2008-03-02 19:09    [W:0.529 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site