net-misc/chrony: use dynamic pool directive and IPv6-enabled zone

On all systems, `pool` is superior for both clients and servers.
On IPv6-first systems, `[0123].` approach provides only one time source.

Implicit `maxsources 4` will ensure that chrony uses 4 time sources and
not 12 as mentioned in previous comment.

Bug: https://bugs.gentoo.org/973543
Signed-off-by: LiviaMedeiros <livia@cirno.name>
Part-of: https://github.com/gentoo/gentoo/pull/46187
Closes: https://github.com/gentoo/gentoo/pull/46187
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
LiviaMedeiros
2026-05-03 17:20:32 +01:00
committed by Sam James
parent 2d87c95653
commit ce9ec7a3f4
3 changed files with 5 additions and 8 deletions
@@ -83,7 +83,7 @@ else
fi
PATCHES=(
"${FILESDIR}"/${PN}-4.7-pool-vendor-gentoo.patch
"${FILESDIR}"/${PN}-4.8-pool-vendor-gentoo.patch
"${FILESDIR}"/${PN}-4.7-systemd-gentoo.patch
)
+1 -1
View File
@@ -83,7 +83,7 @@ else
fi
PATCHES=(
"${FILESDIR}"/${PN}-4.7-pool-vendor-gentoo.patch
"${FILESDIR}"/${PN}-4.8-pool-vendor-gentoo.patch
"${FILESDIR}"/${PN}-4.7-systemd-gentoo.patch
)
@@ -1,16 +1,13 @@
- Use the Gentoo pool
- Use the server directive instead of the pool directive so we get four time
sources and not twelve.
- Use the IPv6-enabled zone
--- a/examples/chrony.conf.example1
+++ b/examples/chrony.conf.example1
@@ -1,5 +1,8 @@
-# Use four public NTP servers from the pool.ntp.org project.
-pool pool.ntp.org iburst
+# Use public NTP servers from the pool.ntp.org project.
+server 0.gentoo.pool.ntp.org iburst
+server 1.gentoo.pool.ntp.org iburst
+server 2.gentoo.pool.ntp.org iburst
+server 3.gentoo.pool.ntp.org iburst
+# Only `2.` zone provides both IPv4 and IPv6, see https://bugs.gentoo.org/973543
+pool 2.gentoo.pool.ntp.org iburst
# Record the rate at which the system clock gains/losses time.
driftfile /var/lib/chrony/drift