From 86f11dadaaf580fcc2a341e8b3ba6e66551cd37d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 8 Apr 2013 17:34:14 +0200 Subject: [PATCH] switch-to-configuration: Use full path to sync --- modules/system/activation/switch-to-configuration.pl | 2 +- modules/system/activation/top-level.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/system/activation/switch-to-configuration.pl b/modules/system/activation/switch-to-configuration.pl index 4db53c9043ec..ea9f8cb5a9a6 100644 --- a/modules/system/activation/switch-to-configuration.pl +++ b/modules/system/activation/switch-to-configuration.pl @@ -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"; diff --git a/modules/system/activation/top-level.nix b/modules/system/activation/top-level.nix index 7246271c7b2d..9f6a8f8583a3 100644 --- a/modules/system/activation/top-level.nix +++ b/modules/system/activation/top-level.nix @@ -148,7 +148,7 @@ let preferLocalBuild = true; buildCommand = systemBuilder; - inherit (pkgs) utillinux; + inherit (pkgs) utillinux coreutils; systemd = config.systemd.package; inherit children;