summaryrefslogtreecommitdiff
path: root/recipes-core
diff options
context:
space:
mode:
authorIgor Opaniuk <igor.opaniuk@toradex.com>2020-04-16 17:55:26 +0300
committerMax Krummenacher <max.krummenacher@toradex.com>2020-06-01 11:39:00 +0200
commitc58086c5d7a54501b1b189855ce6634684b61483 (patch)
tree1c1c5cdbf10e8997fec89b353c76a35c53fdf389 /recipes-core
parent8b664f3ca4030107251bfccdb5473ec7b76dc9b5 (diff)
systemd-conf: change wired network configuration for systemd-networkd
Disable configuration of wired interfaces by systemd-networkd. Also provide an option which will force to keep ip configuration in case of critical connection (rootfs mounted via nfs etc.). Relates-to: ELB-2610 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> (cherry picked from commit 02b8668e7f49d163f48e879c51a0d2be34196ab3)
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/systemd/systemd-conf/wired.network11
-rw-r--r--recipes-core/systemd/systemd-conf_%.bbappend1
2 files changed, 12 insertions, 0 deletions
diff --git a/recipes-core/systemd/systemd-conf/wired.network b/recipes-core/systemd/systemd-conf/wired.network
new file mode 100644
index 0000000..ea73cc4
--- /dev/null
+++ b/recipes-core/systemd/systemd-conf/wired.network
@@ -0,0 +1,11 @@
+[Match]
+Name=disabled_en* disabled_eth*
+KernelCommandLine=!nfsroot
+
+[Network]
+DHCP=yes
+
+[DHCP]
+CriticalConnection=true
+RouteMetric=10
+ClientIdentifier=mac
diff --git a/recipes-core/systemd/systemd-conf_%.bbappend b/recipes-core/systemd/systemd-conf_%.bbappend
new file mode 100644
index 0000000..77ab59d
--- /dev/null
+++ b/recipes-core/systemd/systemd-conf_%.bbappend
@@ -0,0 +1 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/systemd-conf:"