[buildd-tools-devel] Bug#840883: Please work around gnupg agents
Roger Leigh
rleigh at codelibre.net
Sat Oct 15 19:08:04 UTC 2016
On 15/10/2016 19:47, Ian Jackson wrote:
> If some program is run within an schroot which invokes gpg (for
> example, as part of a package build, or a DEP-8 test suite), schroot
> can fail to tear the chroot down. As an example, dgit's DEP-8 test
> suite currently fails for this reason when run with adt-virt-schroot
> specifying an lvm snapshot sid chroot.
>
> (See #840669 for more details.)
>
> I suggest that schroot ought to kill gpg-agents when tearing down the
> chroot. On my own computer I have done this with the attached script,
> which might serve as a starting point.
>
> I suspect that this script is not quite what is needed. Things which
> are perhaps wrong with it:
> * It always prints output (good for me to help debug this problem,
> but not good for a default shipped with schroot)
> * I am not sure whether the --exec test will DTRT. ISTM that it
> will almost certainly do a wrong thing for tarball chroots, but
> it's probably right for lvm snapshot ones (or any other that has
> its own separately mounted /usr filesystem).
> * Other things I haven't thought of.
Thanks, I'll take a look at the script.
However, I wonder why the existing killprocs script isn't finding and
killing the agent on session end. It should take care of any processes
running inside the chroot whether or not they are daemons.
Regards,
Roger
More information about the Buildd-tools-devel
mailing list