switch-to-configuration: Use full path to sync
This commit is contained in:
parent
8d5c252ae1
commit
86f11dadaa
@ -36,7 +36,7 @@ if ($action eq "switch" || $action eq "boot") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Just in case the new configuration hangs the system, do a sync now.
|
# Just in case the new configuration hangs the system, do a sync now.
|
||||||
system("sync") unless ($ENV{"NIXOS_NO_SYNC"} // "") eq "1";
|
system("@coreutils@/bin/sync") unless ($ENV{"NIXOS_NO_SYNC"} // "") eq "1";
|
||||||
|
|
||||||
exit 0 if $action eq "boot";
|
exit 0 if $action eq "boot";
|
||||||
|
|
||||||
|
@ -148,7 +148,7 @@ let
|
|||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
buildCommand = systemBuilder;
|
buildCommand = systemBuilder;
|
||||||
|
|
||||||
inherit (pkgs) utillinux;
|
inherit (pkgs) utillinux coreutils;
|
||||||
systemd = config.systemd.package;
|
systemd = config.systemd.package;
|
||||||
|
|
||||||
inherit children;
|
inherit children;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user