Repository navigation
systemd: fix tmpfiles errors when mount is noatime - #523026
Conversation
c2a79c3 to
7044fa2
Compare
Review dismissed automatically
GrimmTheShrimp
left a comment
There was a problem hiding this comment.
I fetched the PR onto my own server running into similar issues (noatime zfs), and that made the errors shut up. I am not familiar enough with the code to judge whether this is a good fix, but seeing as it was merged upstream i am hoping it is. Seeing as people run into this on 26.05, we should probably just merge this...
|
is there a general preference in nixpkgs with regard to vendoring vs fetching files? this could be done via fetchpatch2 {
url = "https://github.com/systemd/systemd/commit/df45055942330fcd2b77389e449905e7f6ca34ec.patch?full_index=1";
hash = "sha256-1HfIXVaidXdgPO5tZAjd7xJoWM7Ui+xgf8lnq0KU/5g=";
} |
|
It is not visible in the diff but there is a special "PATCH POLICY" in systemd: https://github.com/PaulGrandperrin/nixpkgs/blob/master/pkgs/os-specific/linux/systemd/default.nix#L213 |
|
I think it makes it easier to maintain nixos-specific patches without having to resort to a fork of systemd as it used to: #488508 and #80038 The main issue I see is that it makes it a lot harder for the security team to ensure that PRs like this one really added the commits it pretends to add. I guess they'll have to basically check line by line against the real upstream commits... |
|
Maybe an exception could be added to this policy for temporary upstream patches (like in this case) that will not need to be maintained by NixOS? |
ElvishJerricco
left a comment
There was a problem hiding this comment.
@PaulGrandperrin The systemd package's patch policy does not say that you must vendor the patch file into nixpkgs. All it says is the circumstances when it's acceptable to patch systemd, not that those patches have to be vendored in-tree. In fact the nixpkgs documentation says the opposite: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#fetching-patches
In the interest of keeping our maintenance burden and the size of Nixpkgs to a minimum, patches already merged upstream or published elsewhere should be retrieved using
fetchpatch2:
(though I think that's slightly outdated and now fetchpatch is generally preferred over fetchpatch2)
The instructions in the lines following the policy about rebasing and formatting the patches are just for the patches that we do have to vendor.
Other than that, these patches have been accepted upstream to fix a bug. I think they clearly qualify for the patch policy and this is good to merge once the vendoring has been changed to fetching.
7044fa2 to
d28f57c
Compare
|
I though it was implied, but I'm happy I misinterpreted the policy because I was concerned about the burden it added for security reviews. |
|
Successfully created backport PR for |
|
Upstream just released 260.2, which includes the |
But systemd/systemd@df45055 does not seem to be included in the 260.2 tag, right? |
according to github's webui, it's only in v261 release candidates however, this commit with slightly different changes is in v260.2 |
|
oh yeah i didn't check git webui, i just grepped git log for |
|
I just built and booted on systemd v260.2 and I can confirm 2 things:
Sorry I didn't catch that but since I didn't get any answers from the systemd devs I didn't look too hard. |
You couldn't have, 260.2 released just a few hours after this was merged. |
|
Still getting this while build off master:
|
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
fixes #520485
I followed the instructions of the "PATCH POLICY" so the patch should be formatted as expected.
I added a small comment as recommended by @nikstur .
I guess it'll only go to 26.11 now, what about 26.05? Should I open another PR or could you add the
backportlabel?