Repository navigation
Conversation
…ixes NixOS#49415 This is the backport of the equivalent fix to `switch-to-configuration.pl` PR'd in NixOS#307562. This is a fully LLM-automated translation of that older PR to the Rust `switch-to-configuration-ng`. Assisted-by: Zoo Code + Claude Opus 4.8
|
It would be wise here to re-read the feedback from #307562 in particular the regression test #307562 (comment) |
|
A data point: the same failure through socket activation, with no timer involved ( A switch changed only Postgres then ran the old config with a fresh Unlike the timer case, the stop job is not cancelled: it completes and the unit is started again afterwards. Reading the diff, this PR covers it, because the unit is in both Prepared with an AI assistant (Claude); the logs are from my machine. |
switch-to-configuration-ngyet (haven't had the time to yet, just trying to make servers behave for now), so thorough review / change suggestions would be very appreciated. I have nothing against anybody familiar withswitch-to-configuration-ngsaying "OK I'll take it from here" and take over, though I'll also be happy to put in more time and implement review feedback if preferred.Fixes #49415.
This is the backport of the equivalent fix to
switch-to-configuration.plPR'd in #307562.This is a fully LLM-automated translation of that older PR to the Rust
switch-to-configuration-ng.Assisted-by: Zoo Code + Claude Opus 4.8
I have verified that without this patch, the problem my PR in #307562 fixed in
switch-to-configuration.plis present inswitch-to-configuration-ngof NixOS 25.11, and that this PR apparently fixes it.I could repro the bug after 2
switch-to-configurations without the patch, but with this patch could not repro it within 10 tries. So that's promising. The expected new outputis printed when I change a config file (I use
nebulafor testing, and suffering from, this) via:Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.