Merge pull request #318 from xs3c/chronyc-with-makestep

rootfs: configure chronyc service with makestep
This commit is contained in:
James O. D. Hunt
2019-06-25 07:49:37 +01:00
committed by GitHub

View File

@@ -460,7 +460,12 @@ if [ ${distro} == ubuntu ] || [ ${distro} == debian ] ; then
fi
info "Configure chrony file ${chrony_conf_file}"
echo "refclock PHC /dev/ptp0 poll 3 dpoll -2 offset 0" >> ${chrony_conf_file}
cat >> "${chrony_conf_file}" <<EOT
refclock PHC /dev/ptp0 poll 3 dpoll -2 offset 0
# Step the system clock instead of slewing it if the adjustment is larger than
# one second, at any time
makestep 1 -1
EOT
# Comment out ntp sources for chrony to be extra careful
# Reference: https://chrony.tuxfamily.org/doc/3.4/chrony.conf.html