-
-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Use systemd-run
for nixos-container run
again
#83432
Comments
This reverts commit 7cb100b. See also #83432. This appears to break at least the `container`-backend of `nixops`: when running `switch-to-configuration` within `nixos-container run`, the running `systemd`-instance gets reloaded which appears to kill the `systemd-run` command and causes `nixos-container run` to hang. The full issue is reported in the original PR[1]. [1] #67332 (comment) (cherry picked from commit 7f1ba60)
I think |
Also from the
|
Thanks for sharing those insights! Interestingly this breaks the config-activation when using the Since this issue reproducibly fixes the config-activation for |
Note that, as far as I know, Other than that, |
I marked this as stale due to inactivity. → More info |
Is there anything that can be done here to keep this work moving? |
I marked this as stale due to inactivity. → More info |
I think the most recent effort related to this is happening here: #69414 (comment) |
I marked this as stale due to inactivity. → More info |
Describe the bug
In #83392 I had to revert 7cb100b which used
systemd-run
fornixos-container run
as a first step towards unprivileged containers.The problem is that when deploying a
nixos-container
e.g. using thecontainer
-backend fromnixops
, the backend will runnixos-container run -- [...] switch-to-configuration
on the container's host which will reloadsystemd
. This will make thesystemd-run
call hanging due to the reload and the deployment never finishes, also the new configuration is never activated.See also #67332 (comment)
cc @worldofpeace @arianvp @uvNikita
The text was updated successfully, but these errors were encountered: