Hi,
I found an issue today that was bugging me.
After a lot of debugging I think I now have a TL;DR that can be discussed.
Simply running the follwing spawns a dirmngr/agent daemon:
gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv
04450970750A7228C042CD4442C3EB37B6832E30
After that I find this on the system:
gpg-agent --homedir /root/.gnupg --use-standard-socket --daemon
I found that the old way to disable that is deprecated in newer versions:
--use-agent --no-use-agent This is dummy option. gpg always requires the agent.
I've also it despawning late ron after a while.
My problem is that I only need to fetch/modify keys in a chroot and then want to
exit.
The daemon hanging around prevents me from doing so as it has file handles open
that lets me not remove my bind mount to /dev into the chroot.
I can surely "just kill" the agents, but that seems wrong to me.
Is there any chance to bring back something like the old behaviour "eventually"?
By that I mean that I'm totally fine that it needs an agent and spawns it, but if
--no-use-agent is set (or a better named new argument) the daemon should be
exited immediately.
If there is any way to do that already today, please let me know.
Otherwise what do you think of the suggestion and issue I have - how should I go
on with it?