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

Deprecated /var/run being used for tmpfiles.d #51800

Closed
bobvanderlinden opened this issue Dec 9, 2018 · 1 comment
Closed

Deprecated /var/run being used for tmpfiles.d #51800

bobvanderlinden opened this issue Dec 9, 2018 · 1 comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS

Comments

@bobvanderlinden
Copy link
Member

Issue description

Currently there are a number of services that define something inside /var/run inside /etc/tmpfiles.d/*.conf. One example I ran into was kubernetes. Upon running nixos-rebuild it would show the following warning:

setting up tmpfiles
[/etc/tmpfiles.d/nixos.conf:6] Line references path below legacy directory /var/run/, updating /var/run/kubernetes → /run/kubernetes; please update the tmpfiles.d/ drop-in file accordingly.

/etc/tmpfiles/nixos.conf contained the following lines:

# This file is created automatically and should not be modified.
# Please change the option ‘systemd.tmpfiles.rules’ instead.

D! /tmp 1777 root root
d /opt/cni/bin 0755 root root -
d /var/run/kubernetes 0755 kubernetes kubernetes -
d /var/lib/kubernetes 0755 kubernetes kubernetes -
d /var/cache 0755 root root -

Apparently /var/run/kubernetes is deprecated and should be /run/kubernetes. I'll make a PR for this particular instance, but there are probably more instances of this happening.

Alternatively, #40594 might help in this regard as well as upstream projects will run into the same issue and will resolve this for themselves. We currently cannot always ride along with them.

Steps to reproduce

/etc/nixos/configuration.nix:

...
  services.kubernetes.roles = ["master" "node"];
...

Run nixos-rebuild switch and notice the warning.

@florianjacob
Copy link
Contributor

Related WIP PR for resolving this tree-wide: #47856

@FRidh FRidh added the 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS label Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Projects
None yet
Development

No branches or pull requests

3 participants