Skip to content

Conversation

@bkabrda
Copy link

@bkabrda bkabrda commented Nov 25, 2025

This fixes #257 - this has been reported for a while, but it looks like a PR was never submitted to fix it.
Essentially, this addresses a problem with mv between filesystems - for example I'm running agenix in a Docker container using colima on MacOS and this results in errors like mv: failed to preserve ownership for 'mysecrets.age': Permission denied. Using cp fixes this and I think it doesn't have any negative side effects (the whole directory is removed as part of cleanup anyway).

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 this pull request may close these issues.

Agenix seems to expect that TMPDIR and the destination after encryption is on the same filesystem with mv -f in certain cases

1 participant