3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/system/activation
Michael Weiss 7098b0fcdf nixos/switch-to-configuration: Never stop system.slice
Problem: Restarting (stopping) system.slice would not only stop X11 but
also most system units/services. We obviously don't want this happening
to users when they switch from 18.03 to 18.09 or nixos-unstable.

Reason: The following change in systemd:
d8e5a93382

The commit adds system.slice to the perpetual units, which means
removing the unit file and adding it to the source code. This is done so
that system.slice can't be stopped anymore but in our case it ironically
would cause this script to stop system.slice because the unit file was
removed (and an older systemd version is still running).

Related issue: https://github.com/NixOS/nixpkgs/issues/39791
2018-07-17 19:37:36 +02:00
..
activation-script.nix Merge branch 'master' into staging 2018-03-10 20:38:13 +00:00
no-clone.nix
switch-to-configuration.pl nixos/switch-to-configuration: Never stop system.slice 2018-07-17 19:37:36 +02:00
top-level.nix switch-to-configuration: use Net::DBus to retrieve the list of units 2018-05-03 20:19:23 +02:00