From 18356a647a5738309ce3d4c599c6b7d666123800 Mon Sep 17 00:00:00 2001 From: Miaoqing Pan Date: Tue, 10 Feb 2026 20:55:55 +0800 Subject: [PATCH] systemd: reduce systemd-networkd-wait-online timeout to 10s Most contemporary Linux systems typically use either systemd-networkd or NetworkManager. Having both enabled can lead to timeouts, as both NetworkManager-wait-online.service and systemd-networkd-wait-online.service wait for the network to be up. This configuration often results in long boot delays when one service blocks waiting for an interface that the other is managing. To mitigate this, add a drop-in configuration file (override-timeout.conf) that reduces the systemd-networkd-wait-online timeout to 10 seconds. Signed-off-by: Miaoqing Pan --- recipes-core/systemd/systemd/override-timeout.conf | 3 +++ recipes-core/systemd/systemd_%.bbappend | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 recipes-core/systemd/systemd/override-timeout.conf create mode 100644 recipes-core/systemd/systemd_%.bbappend diff --git a/recipes-core/systemd/systemd/override-timeout.conf b/recipes-core/systemd/systemd/override-timeout.conf new file mode 100644 index 00000000..63d269dd --- /dev/null +++ b/recipes-core/systemd/systemd/override-timeout.conf @@ -0,0 +1,3 @@ +[Service] +ExecStart= +ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --timeout=10 diff --git a/recipes-core/systemd/systemd_%.bbappend b/recipes-core/systemd/systemd_%.bbappend new file mode 100644 index 00000000..be52ce71 --- /dev/null +++ b/recipes-core/systemd/systemd_%.bbappend @@ -0,0 +1,11 @@ +FILESEXTRAPATHS:append := "${THISDIR}/${BPN}:" + +SRC_URI += "\ + file://override-timeout.conf \ +" + +do_install:append:qcom() { + install -d ${D}${systemd_unitdir}/system/systemd-networkd-wait-online.service.d + install -Dm 0644 ${WORKDIR}/sources/override-timeout.conf \ + ${D}${systemd_unitdir}/system/systemd-networkd-wait-online.service.d +}