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

Directory creation not working properly when set to subpath not owned by root #20

Open
rasmus-kirk opened this issue Mar 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@rasmus-kirk
Copy link
Owner

rasmus-kirk commented Mar 12, 2024

systemd-tmpfiles is annoying, need to do some testing/research to figure out what to do. Probably will do nothing, but I'll keep this open if people run into the issue.

I have also updated the documentation describing the issue.

How to fix: Don't set mediaDir and stateDir to home! If in doubt, just don't set them at all, that works perfectly fine.

@rasmus-kirk
Copy link
Owner Author

rasmus-kirk commented Aug 26, 2024

If this is more of a feature than a bug, then I would like nix to at least refuse to build if the subpath is not owned by root, with a nice error message. I have no idea how that could be done though, since building must be "pure".

EDIT: I don't think this is actually possible, so I'll just leave this issue open, if anyone runs into this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant