* ntpd: make the drift detection actually work when running in a chroot.

svn path=/nixos/trunk/; revision=14506
This commit is contained in:
Eelco Dolstra 2009-03-11 15:01:13 +00:00
parent 65edbcdb90
commit 28567c4565

View File

@ -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)}
'';