-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
make /etc/nixos writable #398
Conversation
ea53e81
to
cb35a22
Compare
I had my email wrong so that is the reason the commit was unverified and that is also why I did a force-push |
I don't think anyone cares here. Feel free to force push the review comments, too. |
Testing again my implementation I found out that I almost every time in boot I get the error: I'm really out of ideas so any idea would be appreciated |
Instead of using shell init, you could let this run as an activation script. That way, you don't need sudo. Otherwise, you need to use sudo from |
Only saw your comment on the issue now, sorry. The activation script could be handled the same way the shell hook currently is - so that it's gone after the first rebuild. Another option would be to create a file in the tarball builder, that gets removed by the script, so that the chmod only runs once |
Using /run/wrappers/bin/sudo gives me: Using a activation script will always change permissions, and that may not be what the users want, but if you want me to do it I can for sure |
Dont' worry about that, it happens with everyone
I tried doing The thing is, even if doing a command like pwd I get the same think |
Do you want me to use a activation script? @nzbr |
Either that or a systemd service. Having it as a part of the shell init is suboptimal imho. Make the tarball builder touch a file like |
I also had idea of the builder touching a file but I thought it was bad practice. Since it is okay I will implement it. |
9704de3
to
3c8898b
Compare
I will be closing this since it was already fixed |
What is the objective of this PR
Note
I based myself in the welcome script and tested it before committing
Closes #384