-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Fix switch-to-configuration-ng on WSL #321662
Conversation
In order to have the format strings include the proper content, we must use `with_context()`.
The switch-to-configuration-ng program is able to be called in two different contexts, (1) when being called as root by as the entrypoint to NixOS switching (often from nixos-rebuild), and (2) when performing user activation. On WSL, calling the child process for the latter context appears to not work without also setting the GID of the child. Setting the GID for the child process is likely the right thing to do regardless of the host system being WSL.
@ofborg test switchTestNg |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/4148 |
@dasJ could I get a review from you on this one? I apologize as I realize you're not directly tied to the maintenance of this, but there isn't really any once else I can think of to pull in and review this one. |
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.
fixes this issue for me, would love to have this merged :)
Description of changes
Fixes #319529
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.