[Pkg-sysvinit-devel] Bug#699566: sysvinit: handle ischroot more gracefully
Roger Leigh
rleigh at codelibre.net
Sun Feb 3 16:43:24 UTC 2013
severity 699566 serious
thanks
On Fri, Feb 01, 2013 at 10:17:36PM +0100, Yves-Alexis Perez wrote:
> this is more or less the same thing as #665827: sysvinit postinst use
> ischroot to detect if it's in a chroot, but it doesn't correctly test
> the return value.
>
> ischroot returns 0 if a chroot is detected, 1 if not, and 2 if it failed
> to do the detection. It's a bit unfortunate, because usually people do
> stuff like: ischroot && foo.
>
> But usually when you fail to detect that you're in a chroot, it's
> because you're in one but you're prevented to detect it. In those case,
> I think it should be safer to *not* try to kill 1 because it won't work.
Please could you try the packages at
http://people.debian.org/~rleigh/sysvinit/
and let me know if this solves the problem for you?
Thanks,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' schroot and sbuild http://alioth.debian.org/projects/buildd-tools
`- GPG Public Key F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800
More information about the Pkg-sysvinit-devel
mailing list