diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-03-12 18:51:44 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-03-12 18:52:11 +0100 |
commit | 09c14cd8aa7df29d5c752f650710b0928fce0317 (patch) | |
tree | eb44d1b905f3a14a3af8dde304637d30a1cc6434 /nixos/modules/system/activation/switch-to-configuration.pl | |
parent | f198c4060806706203420c6951b136a42a44d750 (diff) | |
download | nixlib-09c14cd8aa7df29d5c752f650710b0928fce0317.tar nixlib-09c14cd8aa7df29d5c752f650710b0928fce0317.tar.gz nixlib-09c14cd8aa7df29d5c752f650710b0928fce0317.tar.bz2 nixlib-09c14cd8aa7df29d5c752f650710b0928fce0317.tar.lz nixlib-09c14cd8aa7df29d5c752f650710b0928fce0317.tar.xz nixlib-09c14cd8aa7df29d5c752f650710b0928fce0317.tar.zst nixlib-09c14cd8aa7df29d5c752f650710b0928fce0317.zip |
switch-to-configuration: Don't try to start masked units
Diffstat (limited to 'nixos/modules/system/activation/switch-to-configuration.pl')
-rw-r--r-- | nixos/modules/system/activation/switch-to-configuration.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/activation/switch-to-configuration.pl b/nixos/modules/system/activation/switch-to-configuration.pl index cb5b49692fe1..e0649448c834 100644 --- a/nixos/modules/system/activation/switch-to-configuration.pl +++ b/nixos/modules/system/activation/switch-to-configuration.pl @@ -128,7 +128,7 @@ while (my ($unit, $state) = each %{$activePrev}) { $baseName =~ s/\.[a-z]*$//; if (-e $prevUnitFile && ($state->{state} eq "active" || $state->{state} eq "activating")) { - if (! -e $newUnitFile) { + if (! -e $newUnitFile || abs_path($newUnitFile) eq "/dev/null") { push @unitsToStop, $unit; } |