-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Merge pull request #78426 from Mic92/tmpfiles #78426
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
Conversation
Especially tmp.conf is important to create /tmp and /var/tmp with the correct permissions.
@@ -869,11 +869,15 @@ in | |||
"sysctl.d/50-coredump.conf".source = "${systemd}/example/sysctl.d/50-coredump.conf"; | |||
"sysctl.d/50-default.conf".source = "${systemd}/example/sysctl.d/50-default.conf"; | |||
|
|||
"tmpfiles.d/home.conf".source = "${systemd}/example/tmpfiles.d/home.conf"; |
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.
"tmpfiles.d/journal-nocow.conf".source = "${systemd}/example/tmpfiles.d/journal-nocow.conf"; | ||
"tmpfiles.d/portables.conf".source = "${systemd}/example/tmpfiles.d/portables.conf"; |
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.
https://github.com/NixOS/systemd/blob/nixos.v243.4/tmpfiles.d/portables.conf
Update fixed link.
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.
This link 404s
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.
This file is only present in more recent versions: https://github.com/NixOS/systemd/blob/nixos.v243.4/tmpfiles.d/portables.conf
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.
Note that portabled doesn't even work on nixos currently. It crashes somewhere deep in systemd .
Would it be worth having some sort of test which asserts that all of the tmpfiles provided by systemd are either installed or explicitly rejected? |
"tmpfiles.d/static-nodes-permissions.conf".source = "${systemd}/example/tmpfiles.d/static-nodes-permissions.conf"; | ||
"tmpfiles.d/systemd.conf".source = "${systemd}/example/tmpfiles.d/systemd.conf"; | ||
"tmpfiles.d/systemd-nologin.conf".source = "${systemd}/example/tmpfiles.d/systemd-nologin.conf"; |
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.
"tmpfiles.d/systemd-nspawn.conf".source = "${systemd}/example/tmpfiles.d/systemd-nspawn.conf"; | ||
"tmpfiles.d/systemd-tmp.conf".source = "${systemd}/example/tmpfiles.d/systemd-tmp.conf"; | ||
"tmpfiles.d/tmp.conf".source = "${systemd}/example/tmpfiles.d/tmp.conf"; |
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.
Yes, but I am not quite sure how to implement that in a smart way. |
Can't we do something similar as done with |
Right, this uses |
Fine for me to go with this route for now, but we should really move this to something automatic in the NixOS module to prevent future breakages. |
@GrahamcOfBorg test systemd systemd-nspawn |
Feature freeze for 20.03 was just announced. So if we'd like to get the automated approach into 20.03, that has to happen quickly. |
This is more relevant if we perform systemd updates in future for 20.03 it should be fine. |
Especially tmp.conf is important to create /tmp and /var/tmp with the correct
permissions.
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)