mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
switch-to-configuration: Don't try to start masked units
This commit is contained in:
parent
f198c40608
commit
09c14cd8aa
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user