mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
switch-to-configuration.pl: fix inverted dry-activate logic for swap
This commit is contained in:
parent
6d1d80a232
commit
a97fe8990d
@ -655,7 +655,7 @@ foreach my $device (keys(%{$cur_swaps})) {
|
||||
# "systemctl stop" here because systemd has lots of alias
|
||||
# units that prevent a stop from actually calling
|
||||
# "swapoff".
|
||||
if ($action ne "dry-activate") {
|
||||
if ($action eq "dry-activate") {
|
||||
print STDERR "would stop swap device: $device\n";
|
||||
} else {
|
||||
print STDERR "stopping swap device: $device\n";
|
||||
|
Loading…
Reference in New Issue
Block a user