From 02b8668e7f49d163f48e879c51a0d2be34196ab3 Mon Sep 17 00:00:00 2001 From: Igor Opaniuk Date: Thu, 16 Apr 2020 17:55:26 +0300 Subject: 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 --- recipes-core/systemd/systemd-conf/wired.network | 11 +++++++++++ recipes-core/systemd/systemd-conf_%.bbappend | 1 + 2 files changed, 12 insertions(+) create mode 100644 recipes-core/systemd/systemd-conf/wired.network create mode 100644 recipes-core/systemd/systemd-conf_%.bbappend 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:" -- cgit v1.2.3