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%)

diff --git a/meta-arago-distro/recipes-core/systemd/systemd/10-eth.network 
b/meta-arago-distro/recipes-core/systemd/systemd/10-eth.network
index 5d958664..b16ce4c3 100644
--- a/meta-arago-distro/recipes-core/systemd/systemd/10-eth.network
+++ b/meta-arago-distro/recipes-core/systemd/systemd/10-eth.network
@@ -1,5 +1,5 @@
 [Match]
-Name=eth*
+Name=eth0
 KernelCommandLine=!root=/dev/nfs
 
 [Network]
diff --git a/meta-arago-distro/recipes-core/systemd/systemd/10-eth.network 
b/meta-arago-distro/recipes-core/systemd/systemd/15-eth.network
similarity index 71%
copy from meta-arago-distro/recipes-core/systemd/systemd/10-eth.network
copy to meta-arago-distro/recipes-core/systemd/systemd/15-eth.network
index 5d958664..be47a01f 100644
--- a/meta-arago-distro/recipes-core/systemd/systemd/10-eth.network
+++ b/meta-arago-distro/recipes-core/systemd/systemd/15-eth.network
@@ -2,5 +2,8 @@
 Name=eth*
 KernelCommandLine=!root=/dev/nfs
 
+[Link]
+RequiredForOnline=no
+
 [Network]
 DHCP=yes
diff --git a/meta-arago-distro/recipes-core/systemd/systemd_%.bbappend 
b/meta-arago-distro/recipes-core/systemd/systemd_%.bbappend
index f6cb9542..54e6c29d 100644
--- a/meta-arago-distro/recipes-core/systemd/systemd_%.bbappend
+++ b/meta-arago-distro/recipes-core/systemd/systemd_%.bbappend
@@ -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/
 
-- 
2.17.1

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to