From 2a240698fecea59826c88e6281086ad047812802 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 9 Oct 2025 12:06:07 +0200 Subject: [PATCH] change default chrony.conf on s390x to use STP refclock (RHEL-62844) Resolves: RHEL-62844 --- chrony.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chrony.spec b/chrony.spec index e9d2376..79b3444 100644 --- a/chrony.spec +++ b/chrony.spec @@ -86,9 +86,14 @@ test -n "%{vendorzone}" # - use our vendor zone (2.*pool.ntp.org names include IPv6 addresses) # - enable leapsectz to get TAI-UTC offset and leap seconds from tzdata # - use NTP servers from DHCP +# - on s390x use the STP reference clock instead of the pool sed -e 's|^\(pool \)\(pool.ntp.org\)|\12.%{vendorzone}\2|' \ -e 's|#\(leapsectz\)|\1|' \ -e 's|^pool.*pool.ntp.org.*|&\n\n# Use NTP servers from DHCP.\nsourcedir /run/chrony-dhcp|' \ +%ifarch s390x + -e 's|^pool |#&|' \ + -e '1s|^|# Use the s390-specific Server Time Protocol (STP) reference clock.\nrefclock PHC /dev/ptp_s390_stcke poll 2\n\n|' \ +%endif < examples/chrony.conf.example2 > chrony.conf touch -r examples/chrony.conf.example2 chrony.conf