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
systemd: backport tpm fixes #214383
systemd: backport tpm fixes #214383
Conversation
Hm, this doesn't seem to be sufficient for me. It looks like the systemd patch needs to be updated:
ping @ElvishJerricco @RaitoBezarius @blitz @ymatsiuk @NickCao Full build log: https://gist.github.com/flokli/9cdeddd1108eff0c268f3b511fae2a50 |
I don't think this patch is really needed for systemd version in 21.11 |
It was requested in #210896 (comment). |
Oh I see, the systemd version in staging-22.11 is too old though, not in 21.11 sorry. 🤔 how was that even possible? |
Not sure I understand. This PR doesn't change any of that, it simply adds the |
Apologies for misleadingI'm a blind fool, confused 21.11 and 22.11 🤦🏻 |
This looks like a different issue. Need further investigation. |
Strange that the commit (systemd/systemd-stable@542dbc6) is only in systemd v252.2 or later. How could the tpm2 init patch apply. |
|
I mean, we could reflow this patch manually to make sure, and see if it still regresses. Or peek at the patched file during build, by inserting a |
Added cat (awk actually), still on the same line: |
And yes, there is an assertion in that log function.... |
So this looks like a logic error in the if else clauses.
|
The issue is silently fixed in systemd/systemd@35ba2b4 |
So this also should have gone into systemd-stable? |
The commit message says: |
Thanks for the digging! So certainly not something for us to backport on our own. @alaviss If you're interested in driving this forward, please open a backport PR in the |
I'm not sure why this is not working in the test VM because it is working on my system... |
Could this PR (with the current PATCH) be merged independently of fixing the outstanding |
Oh, i wasn't aware someone was using that. We currently don't have any tests covering it, so it's hard to see things are broken / would get fixed by it. Can you provide / extend a VM test with your usecase? We could then backport that and the fix, so it'll serve as a nice régression test. |
@flokli I created a new NixOS test
Not sure if it makes sense to actually backport the test to stable, but I created the PR anyway so anyone can test it easily. |
I approved #217255, and once undrafted and merged, would cherry-pick it into this PR. Thanks! |
@flokli I just realized that the updated commit (with the meta.maintainers entry) won't work on release-22.11 directly since I didn't exist in the maintainers list back then. So you'd need to cherry-pick 62f73c7 (commit adding me to the maintainers list) as well, or you'd have to remove the meta.maintainers entry from the commit. |
(cherry picked from commit 62f73c7)
I'll do some compiling/testing and will then push here. |
f5eecb3
to
c9101e1
Compare
Alright, this now successfully fixes the new |
This backports #210896 and #213182 to staging-22.11.
I still need to check if it actually works :-)
Requested in #210896 (comment).
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes