* ntpd: make the drift detection actually work when running in a chroot.
svn path=/nixos/trunk/; revision=14506
This commit is contained in:
parent
65edbcdb90
commit
28567c4565
@ -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)}
|
||||
'';
|
||||
|
Loading…
x
Reference in New Issue
Block a user