systemd: Add systemd-networkd-wait-online service
PATCH 1/1 systemd: Add systemd-networkd-wait-online service
Install custom systemd-networkd-wait-online.service[0] with --any flag to allow boot to proceed when ANY network interface is online instead of waiting for ALL interfaces to be online. This enables faster boot and allows docker/services[1] to start immediately when any of the network interface is up.
[0]: https://www.freedesktop.org/software/systemd/man/latest/systemd-networkd-wait-online.service.html#--any
[1]: https://git.ti.com/cgit/ti-sdk-linux/meta-tisdk/commit/?&id=386464bbdd2e857d08daf4c44c4e2e24c62e3be8
--- .../recipes-core/systemd/systemd-arago.inc | 4 +++ .../systemd-networkd-wait-online.service | 25 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 meta-arago-distro/recipes-core/systemd/systemd/systemd-networkd-wait-online.service
meta-arago-distro/recipes-core/systemd/systemd-arago.inc +4 -0
@@ -8,6 +8,7 @@ SRC_URI:append = " \ file://30-wlan.network \ file://60-usb.network \ file://timesyncd.conf \ + file://systemd-networkd-wait-online.service \ " do_install:append() {
@@ -28,6 +29,9 @@ do_install:append() { install -d ${D}${sysconfdir}/systemd/ install -m 0644 ${UNPACKDIR}/timesyncd.conf ${D}${sysconfdir}/systemd/ + # Install systemd-networkd-wait-online with --any flag for faster boot + install -m 0644 ${UNPACKDIR}/systemd-networkd-wait-online.service ${D}${systemd_system_unitdir}/ + # Remove new prompt code that is polluting the testing output rm ${D}/${nonarch_libdir}/tmpfiles.d/20-systemd-osc-context.conf rm ${D}/${nonarch_libdir}/systemd/profile.d/80-systemd-osc-context.sh
meta-arago-distro/recipes-core/systemd/systemd/systemd-networkd-wait-online.service new file +25 -0
@@ -0,0 +1,25 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Wait for Network to be Configured +Documentation=man:systemd-networkd-wait-online.service(8) +DefaultDependencies=no +Conflicts=shutdown.target +Requires=systemd-networkd.service +After=systemd-networkd.service +Before=network-online.target shutdown.target + +[Service] +Type=oneshot +ExecStart=/lib/systemd/systemd-networkd-wait-online --any +RemainAfterExit=yes + +[Install] +WantedBy=network-online.target
Signature · 1 line
2.34.1
meta-arago / na / 20260323144022.2278502-1-j-sahu
PRC Results: PASS
=========================================================
check-yocto-patches: PASS
=========================================================
Patches
----------------------------------------
All patches passed
=========================================================
apply-yocto-patch: PASS
=========================================================
master
=====================
Summary:
- Patch Series: [meta-arago][master][PATCH] systemd: Add systemd-networkd-wait-online service
- Submitter: From: Telukula Jeevan Kumar Sahu <[email protected]>
- Date: Date: Mon, 23 Mar 2026 20:10:22 +0530
- Num Patches: 1
- Mailing List (public inbox) Commit SHA: 8a07ea2298cfdfb0f95dc28febab31b82280c8d6
Applied to:
- Repository: lcpd-prc-meta-arago
- Base Branch: master-wip
- Commit Author: Ryan Eatmon <[email protected]>
- Commit Subject: libsdl2: Remove unneeded setting
- Commit SHA: 9c7ac854c1119661806e4afdc5c2c0938315f00f
Patches
----------------------------------------
All patches applied
=========================================================
check-yocto-repo: PASS
=========================================================
master
=====================
PASS
=========================================================
yocto-check-layers: PASS
=========================================================
master - PASS
=====================
All checks passed