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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/rosenpass: move preStart into script to workaround systemd bug #311986

Merged
merged 1 commit into from
May 19, 2024

Conversation

NyCodeGHG
Copy link
Member

@NyCodeGHG NyCodeGHG commented May 15, 2024

Description of changes

Rosenpass currently fails to start because of a bug in systemd (see #258371 and systemd/systemd#31202), which is fixed in systemd v256.
This PR makes rosenpass work by moving the preStart command also into script.
This is just a workaround to get rosenpass to work until we have systemd v256. I'm not sure how much of a difference it makes, but we should probably revert this once we are on systemd v256.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@lorenzleutgeb you wrote the rosenpass module, could you review this change?


Add a 馃憤 reaction to pull requests you find important.

Because of a systemd bug, using both ExecStartPre and ExecStart will fill up the systemd credentials directory,
which leads to rosenpass failing to start.
This will be fixed in systemd v256, see systemd/systemd#31202

Related issue: NixOS#258371
@lorenzleutgeb
Copy link
Member

lorenzleutgeb commented May 15, 2024

Could you please provide more context? Which bug? systemd/systemd#24734 (comment)? Is it what @wahjava mentioned here #254813 (comment)? If so, then I'd like to defer to @wahjava and get their opinion.

If it's a workaround until systemd 256, maybe add a comment to move it back once NixOS is on systemd 256 or newer?

@NyCodeGHG
Copy link
Member Author

Oh sorry, i mentioned the issue you linked in the commit message, but not in the pull request description.

@NyCodeGHG
Copy link
Member Author

@ofborg test rosenpass

@wahjava
Copy link
Contributor

wahjava commented May 15, 2024

Looks good to me. This is exactly what I'm doing as a workaround until fixed systemd makes it into the tree.

@drupol drupol merged commit 5f1abb3 into NixOS:master May 19, 2024
35 checks passed
@NyCodeGHG NyCodeGHG deleted the nixos/rosenpass/fix-credentials branch May 19, 2024 09:49
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