Re: Idea: about package installation under chroot.
On Thu, Mar 24, 2005 at 07:42:01PM +0100, Josselin Mouette wrote:
> Le jeudi 24 mars 2005 ?? 14:54 -0300, Jorge L. deLyra a ??crit :
> > Now, all this can be avoided very simply by a line in the init.d/ script
> > for the daemon, checking that /proc is mounted. Since it will be mounted
> > on normal systems but typically not when using a chroot shell, it serves
> > as a flag to enable the daemon restarting procedure.
> > I am using successfully the following line to fix the situation in the
> > case of the troublesome rwhod package, near the top of the file:
> > test -e /proc/mounts || exit 0
> I definitely like that idea. I don't know whether we have ports
> without /proc, but such a check for a chroot would be really nice
Probably I don't understand the assumption /proc is not mounted in
All my chroots have /proc. There are just too many programs that depends
of /proc. I even witnessed a FTBFS of a C++ program that depended of the
chroot not having /proc mounted.
Imagine a large red swirl here.