From e16ff37f865306e04e4e2b7df6d5beb78e6361d0 Mon Sep 17 00:00:00 2001 From: Archana Shinde Date: Wed, 20 Mar 2019 15:57:54 -0700 Subject: [PATCH] chrony: Comment out any NTP sources for chrony Reference: https://chrony.tuxfamily.org/doc/3.4/chrony.conf.html Signed-off-by: Archana Shinde --- rootfs-builder/rootfs.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootfs-builder/rootfs.sh b/rootfs-builder/rootfs.sh index 8568d7b8c..161e63dd3 100755 --- a/rootfs-builder/rootfs.sh +++ b/rootfs-builder/rootfs.sh @@ -376,6 +376,10 @@ fi info "Configure chrony file ${chrony_conf_file}" echo "refclock PHC /dev/ptp0 poll 3 dpoll -2 offset 0" >> ${chrony_conf_file} +# Comment out ntp sources for chrony to be extra careful +# Reference: https://chrony.tuxfamily.org/doc/3.4/chrony.conf.html +sed -i 's/^\(server \|pool \|peer \)/# &/g' ${chrony_conf_file} + # The CC on s390x for fedora needs to be manually set to gcc when the golang is downloaded from the main page. # See issue: https://github.com/kata-containers/osbuilder/issues/217 [ "$distro" == fedora ] && [ "$ARCH" == "s390x" ] && export CC=gcc