nixos/switch-to-configuration: Ignore started scopes
They are not managed by us and it might be weird to users to see units they didn't expect to be started.
This commit is contained in:
parent
ec619ca369
commit
f0a31f9b9f
1 changed files with 3 additions and 1 deletions
|
@ -501,7 +501,9 @@ while (my ($unit, $state) = each %{$activeNew}) {
|
|||
push @failed, $unit;
|
||||
}
|
||||
}
|
||||
elsif ($state->{state} ne "failed" && !defined $activePrev->{$unit}) {
|
||||
# Ignore scopes since they are not managed by this script but rather
|
||||
# created and managed by third-party services via the systemd dbus API.
|
||||
elsif ($state->{state} ne "failed" && !defined $activePrev->{$unit} && $unit !~ /\.scope$/) {
|
||||
push @new, $unit;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue