3
0
Fork 0
forked from mirrors/nixpkgs

switch-to-configuration: Better error checking

This commit is contained in:
Eelco Dolstra 2015-04-13 12:28:12 +02:00
parent 6fba1d8628
commit 4466707ddf

View file

@ -322,7 +322,9 @@ foreach my $device (keys %$prevSwaps) {
# Should we have systemd re-exec itself?
my $restartSystemd = abs_path("/proc/1/exe") ne abs_path("@systemd@/lib/systemd/systemd");
my $prevSystemd = abs_path("/proc/1/exe") or die;
my $newSystemd = abs_path("@systemd@/lib/systemd/systemd") or die;
my $restartSystemd = $prevSystemd ne $newSystemd;
sub filterUnits {