mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-27 02:04:28 +01:00
Merge pull request #318 from xs3c/chronyc-with-makestep
rootfs: configure chronyc service with makestep
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user