From add0d445e82e3c4600fd48360e221b74f357e941 Mon Sep 17 00:00:00 2001 From: "Yang, Wei" Date: Wed, 19 Jun 2019 16:09:47 +0800 Subject: [PATCH] rootfs: configure chronyc service with makestep The current chrony service does not step the system clock, so add the modification to do this if the adjustment is larger than one second Fixes: #316 Signed-off-by: Yang, Wei --- rootfs-builder/rootfs.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rootfs-builder/rootfs.sh b/rootfs-builder/rootfs.sh index 7e8baa6937..ebe2b710fd 100755 --- a/rootfs-builder/rootfs.sh +++ b/rootfs-builder/rootfs.sh @@ -395,7 +395,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}" <