summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2023-10-02 12:50:51 +0100
committerThiago Kenji Okada <thiagokokada@gmail.com>2023-10-04 20:45:23 +0100
commitecd89093e178e50ead57e3338f25e637dd29310b (patch)
tree336e6fc39eb3db5c41b3d59f6bef52b0dd22e23a /pkgs/development/python-modules/python-mapnik
parent3d007e8a60c4d1d4ea02ab9912573fb839ef6c88 (diff)
nixos-rebuild: run activation inside systemd-run
Right now, running `nixos-rebuild switch` in a remote system via SSH may put the system in an unusable state by restarting services (e.g.: network ones like systemd-networkd.service) during the update. This will cause the SSH to lose access to the TTY, stopping the process entirely. This commit wraps up the call to `switch-to-configuration` inside a systemd-run call, making the switch resiliant against TTY loss, since it will allocate its own TTY. For the user this should be entirely transparent though, with the only visible change is that the `switch-to-configuration` messages will be logged through journalctl (e.g.: `journalctl -u nixos-rebuild-switch-to-configuration`).
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik')
0 files changed, 0 insertions, 0 deletions