summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Tu <wltu@google.com>2023-06-27 21:37:35 +0300
committerWilly Tu <wltu@google.com>2023-06-27 22:09:57 +0300
commitfbf0f45e71425d4d1b77a25a03e1b4d94695c833 (patch)
treeb7dc874f4eb995cdbdfd8044d0700c6e664ee426
parent83cf84a01f2af810f2c440e50319dc00edd9ce36 (diff)
downloadopenbmc-fbf0f45e71425d4d1b77a25a03e1b4d94695c833.tar.xz
meta-google: fix timesync timeout
The systemd config path is wrong. Tested: ``` $ cat /lib/systemd/system/systemd-time-wait-sync.service.d/10-gbmc.conf [Service] TimeoutStartSec=1min $ systemctl status systemd-time-wait-sync.service x systemd-time-wait-sync.service - Wait Until Kernel Time Synchronized Loaded: loaded (/lib/systemd/system/systemd-time-wait-sync.service; disabled; preset: disabled) Drop-In: /lib/systemd/system/systemd-time-wait-sync.service.d `-10-gbmc.conf Active: failed (Result: timeout) since Thu 2023-01-26 02:00:19 PST; 72ms ago Docs: man:systemd-time-wait-sync.service(8) Process: 5542 ExecStart=/lib/systemd/systemd-time-wait-sync (code=exited, status=0/SUCCESS) Main PID: 5542 (code=exited, status=0/SUCCESS) CPU: 20ms Jan 26 01:59:19 gbmc systemd[1]: Starting Wait Until Kernel Time Synchronized... Jan 26 01:59:19 gbmc systemd-time-wait-sync[5542]: adjtime state 5 status 40 time Thu 2023-01-26 09:59:19.662116 UTC Jan 26 02:00:19 gbmc systemd[1]: systemd-time-wait-sync.service: start operation timed out. Terminating. Jan 26 02:00:19 gbmc systemd-time-wait-sync[5542]: Exit without adjtimex synchronized. Jan 26 02:00:19 gbmc systemd[1]: systemd-time-wait-sync.service: Failed with result 'timeout'. ``` Change-Id: I5b3cfd0b098a376eed162c509f5876bb2025cd77 Signed-off-by: Willy Tu <wltu@google.com>
-rw-r--r--meta-google/recipes-google/systemd/gbmc-systemd-config.bb6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-google/recipes-google/systemd/gbmc-systemd-config.bb b/meta-google/recipes-google/systemd/gbmc-systemd-config.bb
index 8809a6ee63..ef5c1a0ed4 100644
--- a/meta-google/recipes-google/systemd/gbmc-systemd-config.bb
+++ b/meta-google/recipes-google/systemd/gbmc-systemd-config.bb
@@ -24,7 +24,7 @@ FILES:${PN}:append = " \
${libdir}/sysctl.d/40-gbmc-sysctl.conf \
${libdir}/sysctl.d/40-gbmc-forward.conf \
${systemd_system_unitdir}/sysinit.target.wants/systemd-time-wait-sync.service \
- ${systemd_system_unitdir}/systemd-time-wait-sync.d/10-gbmc.conf \
+ ${systemd_system_unitdir}/systemd-time-wait-sync.service.d/10-gbmc.conf \
"
FILES:${PN}:append:dev = " \
@@ -65,8 +65,8 @@ do_install() {
mkdir -p ${D}${systemd_system_unitdir}/sysinit.target.wants/
ln -sv ${systemd_system_unitdir}/systemd-time-wait-sync.service ${D}${systemd_system_unitdir}/sysinit.target.wants/
- mkdir -p ${D}${systemd_system_unitdir}/systemd-time-wait-sync.d/
- install -D -m0644 ${WORKDIR}/10-gbmc.conf ${D}${systemd_system_unitdir}/systemd-time-wait-sync.d/
+ mkdir -p ${D}${systemd_system_unitdir}/systemd-time-wait-sync.service.d/
+ install -D -m0644 ${WORKDIR}/10-gbmc.conf ${D}${systemd_system_unitdir}/systemd-time-wait-sync.service.d/
}
do_install:append:dev() {