[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to detect if inside a buildd chroot



On Wed, Sep 26, 2007 at 09:31:36PM +0100, Roger Leigh wrote:
> A Mennucc <mennucc1@debian.org> writes:
> 
> > It is all explained in
> > /usr/share/doc/sysv-rc/README.policy-rc.d
> >
> > It seems that all you need to do is to create inside your chroot a
> > simple shell script  /usr/sbin/policy-rc.d that just does an 'exit 101'
> 
> I would very much prefer that all packages worked correctly inside a
> chroot without any admin intervention.  If it's not appropriate to run
> inside a chroot, then the init script should IMHO detect that and not
> start/restart/stop the service.

The fact is, not all chroot are buildd chroots, and many chroots
actually do run services...

Mike



Reply to: