forked from mirrors/nixpkgs
switch-to-configuration: Better error checking
This commit is contained in:
parent
6fba1d8628
commit
4466707ddf
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue