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

tree-wide: /var/run -> /run [WIP] #47856

Closed
wants to merge 83 commits into from
Closed

Conversation

peterhoeg
Copy link
Member

Motivation for this change

/var/run/ is deprecated in favour of /run.

Further to #47775

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

Copy link
Member

@Mic92 Mic92 left a 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"
Copy link
Member

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"
Copy link
Member

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"
Copy link
Member

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"
Copy link
Member

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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here.

@peterhoeg
Copy link
Member Author

Thanks for the comprehensive review @volth - I'll clear it all up.

@peterhoeg peterhoeg changed the title tree-wide: /var/run -> /run tree-wide: /var/run -> /run [WIP] Oct 4, 2018
@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already did this

@bobvanderlinden
Copy link
Member

When the conflicts are resolved, is this PR still WIP?

@bobvanderlinden
Copy link
Member

See https://github.com/bobvanderlinden/nixpkgs/tree/var-run

What is the next step into getting this merged?

@peterhoeg
Copy link
Member Author

@bobvanderlinden, please open a new PR with your changes and reference this one. I'll go ahead and close this afterwards.

@bobvanderlinden
Copy link
Member

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

@peterhoeg
Copy link
Member Author

Superseeded

@peterhoeg peterhoeg closed this Dec 20, 2018
@peterhoeg peterhoeg deleted the var-run branch January 14, 2020 04:33
@peterhoeg peterhoeg restored the var-run branch February 21, 2020 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants