diff options
author | Igor Opaniuk <igor.opaniuk@toradex.com> | 2020-04-16 17:55:26 +0300 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2020-06-01 11:39:00 +0200 |
commit | c58086c5d7a54501b1b189855ce6634684b61483 (patch) | |
tree | 1c1c5cdbf10e8997fec89b353c76a35c53fdf389 | |
parent | 8b664f3ca4030107251bfccdb5473ec7b76dc9b5 (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)
-rw-r--r-- | recipes-core/systemd/systemd-conf/wired.network | 11 | ||||
-rw-r--r-- | recipes-core/systemd/systemd-conf_%.bbappend | 1 |
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:" |