[PATCH openbmc] Make networkd grab dhcp address
OpenBMC Patches
patches at stwcx.xyz
Fri Oct 30 23:42:48 AEDT 2015
From: Brad Bishop <bradleyb at us.ibm.com>
---
meta-phosphor/common/recipes-core/systemd/systemd/default.network | 4 ++++
meta-phosphor/common/recipes-core/systemd/systemd_%.bbappend | 8 ++++++++
2 files changed, 12 insertions(+)
create mode 100644 meta-phosphor/common/recipes-core/systemd/systemd/default.network
diff --git a/meta-phosphor/common/recipes-core/systemd/systemd/default.network b/meta-phosphor/common/recipes-core/systemd/systemd/default.network
new file mode 100644
index 0000000..c75c3d6
--- /dev/null
+++ b/meta-phosphor/common/recipes-core/systemd/systemd/default.network
@@ -0,0 +1,4 @@
+[Match]
+Name=eth*
+[Network]
+DHCP=ipv4
diff --git a/meta-phosphor/common/recipes-core/systemd/systemd_%.bbappend b/meta-phosphor/common/recipes-core/systemd/systemd_%.bbappend
index b0cf906..680595c 100644
--- a/meta-phosphor/common/recipes-core/systemd/systemd_%.bbappend
+++ b/meta-phosphor/common/recipes-core/systemd/systemd_%.bbappend
@@ -1 +1,9 @@
PACKAGECONFIG += "networkd"
+FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
+SRC_URI += "file://default.network"
+
+FILES_${PN} += "${libdir}/systemd/network/default.network"
+
+do_install_append() {
+ install -m 644 ${WORKDIR}/default.network ${D}${libdir}/systemd/network/
+}
--
2.6.0
More information about the openbmc
mailing list