systemd: use eth0 as RequiredForOnline so systemd-networkd-wait-online won't stall
PATCH 1/1 systemd: use eth0 as RequiredForOnline so systemd-networkd-wait-online won't stall
Otherwise on systems with multiple interfaces systemd-networkd-wait-online will wait for all of them to get configured before timing out after 2 minutes. That'll block services that wait for network to come online, like Matrix, etc.
Signed-off-by Denys Dmytriyenko <[email protected]>
---
meta-arago-distro/recipes-core/systemd/systemd/10-eth.network | 2 +-
.../systemd/systemd/{10-eth.network => 15-eth.network} | 3 +++
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend | 4 +++-
3 files changed, 7 insertions(+), 2 deletions(-)
copy meta-arago-distro/recipes-core/systemd/systemd/{10-eth.network => 15-eth.network} (71%)meta-arago-distro/recipes-core/systemd/systemd/10-eth.network +1 -1
@@ -1,5 +1,5 @@ [Match] -Name=eth* +Name=eth0 KernelCommandLine=!root=/dev/nfs [Network]
meta-arago-distro/recipes-core/systemd/systemd/15-eth.network renamed from meta-arago-distro/recipes-core/systemd/systemd/10-eth.network +3 -0
@@ -2,5 +2,8 @@ Name=eth* KernelCommandLine=!root=/dev/nfs +[Link] +RequiredForOnline=no + [Network] DHCP=yes
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +3 -1
@@ -1,4 +1,4 @@ -PR_append = ".arago5" +PR_append = ".arago6" FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
@@ -11,6 +11,7 @@ SRC_URI_append = " \ file://usb1-rules.sh \ file://usb2-rules.sh \ file://10-eth.network \ + file://15-eth.network \ file://30-wlan.network \ file://60-usb.network \ file://sync-clocks.service \
@@ -26,6 +27,7 @@ do_install_append() { install -d ${D}${sysconfdir}/systemd/network/ install -m 0644 ${WORKDIR}/10-eth.network ${D}${sysconfdir}/systemd/network/ + install -m 0644 ${WORKDIR}/15-eth.network ${D}${sysconfdir}/systemd/network/ install -m 0644 ${WORKDIR}/30-wlan.network ${D}${sysconfdir}/systemd/network/ install -m 0644 ${WORKDIR}/60-usb.network ${D}${sysconfdir}/systemd/network/
Signature · 1 line
2.17.1