From c7d40180d27e24d06f65209f99e1835772a0ff5c Mon Sep 17 00:00:00 2001 From: Huijing Hei Date: Mon, 10 Apr 2023 16:13:35 +0800 Subject: [PATCH] service: wait for chronyd to sync the system time for `coreos-installer` See https://github.com/coreos/coreos-installer/issues/1158 --- systemd/coreos-installer.service | 3 +++ 1 file changed, 3 insertions(+) diff --git a/systemd/coreos-installer.service b/systemd/coreos-installer.service index 3f507525f..ec317e801 100644 --- a/systemd/coreos-installer.service +++ b/systemd/coreos-installer.service @@ -7,6 +7,9 @@ Wants=network-online.target # systemd-resolved comes up if enabled. # https://github.com/coreos/coreos-installer/issues/283 After=systemd-resolved.service +# Wait for chronyd to sync the system time +# https://github.com/coreos/coreos-installer/issues/1158 +After=chronyd.service ConditionDirectoryNotEmpty=|/etc/coreos/installer.d ConditionKernelCommandLine=|coreos.inst.install_dev OnFailure=emergency.target