From 1c2a61bc91a4a7135869b7865789b6b962bdb650 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 14 Jun 2023 00:07:25 +0200 Subject: [PATCH] Avoid waiting for time synchronization too early (#2594) In case a system takes a bit longer to boot (e.g. due to SWAP initialization on first boot, especially on a system with lots of memory and not very fast strage, e.g. an ODROID-M1 using an SD card) we might time-out waiting for time synchronization before the time synchronization service even got started. By ordering the systemd-time-wait-sync.service after the network is online, the timeout of this service should be started much later. With that the systemd-time-wait-sync.service shouldn't timeout any longer. --- .../system/systemd-time-wait-sync.service.d/network-online.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/buildroot-external/rootfs-overlay/etc/systemd/system/systemd-time-wait-sync.service.d/network-online.conf b/buildroot-external/rootfs-overlay/etc/systemd/system/systemd-time-wait-sync.service.d/network-online.conf index bebe04eb4..3e6f58d5f 100644 --- a/buildroot-external/rootfs-overlay/etc/systemd/system/systemd-time-wait-sync.service.d/network-online.conf +++ b/buildroot-external/rootfs-overlay/etc/systemd/system/systemd-time-wait-sync.service.d/network-online.conf @@ -1,4 +1,5 @@ [Unit] +After=network-online.target Wants=network-online.target [Install]