From 28567c4565d256556640a47ece2ae83878b36360 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 11 Mar 2009 15:01:13 +0000 Subject: [PATCH] * ntpd: make the drift detection actually work when running in a chroot. svn path=/nixos/trunk/; revision=14506 --- upstart-jobs/ntpd.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/upstart-jobs/ntpd.nix b/upstart-jobs/ntpd.nix index 4bfcfe115cb..35a7c2e0035 100644 --- a/upstart-jobs/ntpd.nix +++ b/upstart-jobs/ntpd.nix @@ -7,7 +7,9 @@ let ntpUser = "ntp"; config = writeText "ntp.conf" '' - driftfile ${stateDir}/ntp.drift + # Keep the drift file in ${stateDir}/ntp.drift. However, since we + # chroot to ${stateDir}, we have to specify it as /ntp.drift. + driftfile /ntp.drift ${toString (map (server: "server " + server + "\n") servers)} '';