switch-to-configuration: Use full path to sync

This commit is contained in:
Eelco Dolstra 2013-04-08 17:34:14 +02:00
parent 8d5c252ae1
commit 86f11dadaa
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ if ($action eq "switch" || $action eq "boot") {
}
# 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";

View File

@ -148,7 +148,7 @@ let
preferLocalBuild = true;
buildCommand = systemBuilder;
inherit (pkgs) utillinux;
inherit (pkgs) utillinux coreutils;
systemd = config.systemd.package;
inherit children;