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
tree-wide: /var/run -> /run [WIP] #47856
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From man shells(5):
/etc/shells is a text file which contains the full pathnames of valid
login shells. This file is consulted by chsh(1) and available to be
queried by other programs.
Be aware that there are programs which consult this file to find out if
a user is a normal user; for example, FTP daemons traditionally disal‐
low access to users with shells not included in this file.
This could lock out users that have the old /var/run
right?
@@ -218,9 +218,9 @@ in | |||
|
|||
environment.shells = | |||
[ "/run/current-system/sw/bin/bash" | |||
"/var/run/current-system/sw/bin/bash" | |||
"/run/current-system/sw/bin/bash" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now we have it twice.
"/run/current-system/sw/bin/sh" | ||
"/var/run/current-system/sw/bin/sh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here.
@@ -176,7 +176,7 @@ in | |||
|
|||
environment.shells = [ | |||
"/run/current-system/sw/bin/fish" | |||
"/var/run/current-system/sw/bin/fish" | |||
"/run/current-system/sw/bin/fish" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here.
@@ -50,7 +50,7 @@ in | |||
|
|||
environment.shells = | |||
[ "/run/current-system/sw/bin/xonsh" | |||
"/var/run/current-system/sw/bin/xonsh" | |||
"/run/current-system/sw/bin/xonsh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here.
@@ -201,7 +201,7 @@ in | |||
|
|||
environment.shells = | |||
[ "/run/current-system/sw/bin/zsh" | |||
"/var/run/current-system/sw/bin/zsh" | |||
"/run/current-system/sw/bin/zsh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here.
Thanks for the comprehensive review @volth - I'll clear it all up. |
@@ -6,7 +6,7 @@ index 16b80f7..b3af435 100644 | |||
#guest-account-script=guest-account | |||
#logind-check-graphical=false | |||
#log-directory=/var/log/lightdm | |||
-#run-directory=/var/run/lightdm | |||
-#run-directory=/run/lightdm | |||
+run-directory=/run/lightdm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I already did this
+run-directory=/run/lightdm |
When the conflicts are resolved, is this PR still WIP? |
See https://github.com/bobvanderlinden/nixpkgs/tree/var-run
What is the next step into getting this merged? |
@bobvanderlinden, please open a new PR with your changes and reference this one. I'll go ahead and close this afterwards. |
I have a new PR ready. Could you also give it a review @peterhoeg ? This PR contains quite a few changes that can be problematic. I've removed those from #51918 |
Superseeded |
Motivation for this change
/var/run/
is deprecated in favour of/run
.Further to #47775
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)