service causes ps errors in chroot

rank1seeker at gmail.com rank1seeker at gmail.com
Wed Apr 25 13:34:36 UTC 2012


----- Original Message -----
From: Andrey Zonov <andrey at zonov.org>
To: rank1seeker at gmail.com
Cc: hackers at freebsd.org
Date: Mon, 23 Apr 2012 10:36:23 +0400
Subject: Re: service causes ps errors in chroot

> On 4/22/12 4:07 PM, rank1seeker at gmail.com wrote:
> > When I use '/usr/sbin/service' in chroot, it outputs:
> > ps: empty file: Invalid argument
> >    OR
> > ps: cannot read IdlePTD
> >
> > But it does work.
> >
> 
> I think you need devfs in your chroot.  Try this:
> 
> mount -t devfs devfs /path/to/chroot/dev
> 
> 
> -- 
> Andrey Zonov
> 


Today I tried to recreate/reproduce this, but nada.
Without devfs mounted inside of DESTDIR.

I don't know what happened?
'service' was supposed to be completely shell bassed, so I've was puzzled 
with 'ps' output.


More information about the freebsd-hackers mailing list