switch-to-configuration: Ignore slice units

This commit is contained in:
Eelco Dolstra 2014-12-18 01:47:18 +01:00
parent 31e1e8325b
commit c812e45292

View File

@ -181,7 +181,7 @@ while (my ($unit, $state) = each %{$activePrev}) {
} elsif ($unit =~ /\.mount$/) {
# Reload the changed mount unit to force a remount.
write_file($reloadListFile, { append => 1 }, "$unit\n");
} elsif ($unit =~ /\.socket$/ || $unit =~ /\.path$/) {
} elsif ($unit =~ /\.socket$/ || $unit =~ /\.path$/ || $unit =~ /\.slice$/) {
# FIXME: do something?
} else {
my $unitInfo = parseUnit($newUnitFile);