Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In the "Clean up temporary files" step, stop gnupg before deleting its home directory #64

Closed
dscho opened this issue Feb 6, 2024 · 0 comments · Fixed by #71
Closed

Comments

@dscho
Copy link
Member

dscho commented Feb 6, 2024

GNU Privacy Guard starts a gpg-agent that may very well access the keys in its home directory. Therefore, when we try to clean them up, that agent may still be running and the files cannot be deleted. This is exactly what happened yesterday when deploying libfido2:

▸Run rm -rf "$HOME"
rm: cannot remove '/d/a/_temp/home/.gnupg/public-keys.d/pubring.db': Device or resource busy
Error: Process completed with exit code 1.

Let's specifically stop the gpg-agent before removing the home directory to work around this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants