From 7729db1e11f456ccd8facb58ec7d9128f9a05b47 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 12 Aug 2022 17:43:26 +0200 Subject: [PATCH] Synchronize network time quicker on bootup (#2057) Currently systemd-timesyncd tries to connect to the NTP server quite early at boot-up. At this time the network connection has not been established yet. This causes resolving the NTP server to fail and a rate limit kicks in which makes systemd-timesyncd wait for 30s until the next attempt. Lowering the retry attempt to 10s makes systemd-timesyncd connecting shortly after. Note: The rate limit is 10 attempts per 10s. Because the attempts are immediately exhausted lowering connection retry attempt below 10s adds no benefit. See also: https://github.com/systemd/systemd/issues/24298 --- buildroot-external/rootfs-overlay/etc/systemd/timesyncd.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buildroot-external/rootfs-overlay/etc/systemd/timesyncd.conf b/buildroot-external/rootfs-overlay/etc/systemd/timesyncd.conf index 43da505b3..e90f0c225 100644 --- a/buildroot-external/rootfs-overlay/etc/systemd/timesyncd.conf +++ b/buildroot-external/rootfs-overlay/etc/systemd/timesyncd.conf @@ -1,2 +1,4 @@ [Time] FallbackNTP=time.cloudflare.com +# Speed-up boot as first attempt is done before network is up +ConnectionRetrySec=10