On sam., 2012-03-24 at 14:50 +0000, Clint Adams wrote:
> On Tue, Mar 20, 2012 at 10:39:05AM +0100, Yves-Alexis Perez wrote:
> > it seems that ischroot returns 0 when running inside a cowbuilder chroot. 
> > Not
> > sure if it's cowbuilder/pbuilder or ischroot fault, but it breaks upgrading
> > sysvinit.
> 
> I don't use cowbuilder; what's a good way to detect that environment?

Ok, it seems I can't reproduce right now. On the box I tried, ischroot
returns 2 because it can't access /proc/1.

Problem is that 2 might not be safe when people do stuff like:

if ! ischroot; then
        #do stuff
done

since it might still be a chroot. But that might be a bug in those
postinst scripts.

Regards,
-- 
Yves-Alexis

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to