[PATCH openbmc] Enable DHCP
OpenBMC Patches
openbmc-patches at stwcx.xyz
Tue Feb 2 14:40:19 AEDT 2016
From: Adriana Kobylak <anoo at us.ibm.com>
Enable DHCP as default in the image.
---
meta-phosphor/common/recipes-phosphor/network/network.bb | 6 +++++-
.../common/recipes-phosphor/network/network/80-dhcp.network | 5 +++++
2 files changed, 10 insertions(+), 1 deletion(-)
create mode 100755 meta-phosphor/common/recipes-phosphor/network/network/80-dhcp.network
diff --git a/meta-phosphor/common/recipes-phosphor/network/network.bb b/meta-phosphor/common/recipes-phosphor/network/network.bb
index 33e2693..b53f7f4 100644
--- a/meta-phosphor/common/recipes-phosphor/network/network.bb
+++ b/meta-phosphor/common/recipes-phosphor/network/network.bb
@@ -8,7 +8,9 @@ inherit obmc-phosphor-systemd
RDEPENDS_${PN} += "python-dbus python-pygobject"
-SRC_URI += "git://github.com/openbmc/phosphor-networkd"
+SRC_URI += "git://github.com/openbmc/phosphor-networkd \
+ file://80-dhcp.network \
+ "
SRCREV = "a657afc9cc76dc6678edb8de9df569f92dd108e1"
@@ -17,5 +19,7 @@ S = "${WORKDIR}/git"
do_install() {
install -d ${D}/${sbindir}
install ${S}/netman.py ${D}/${sbindir}
+ install -d ${D}/etc/systemd/network/
+ install ${WORKDIR}/80-dhcp.network ${D}/etc/systemd/network/
}
diff --git a/meta-phosphor/common/recipes-phosphor/network/network/80-dhcp.network b/meta-phosphor/common/recipes-phosphor/network/network/80-dhcp.network
new file mode 100755
index 0000000..e871c69
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/network/network/80-dhcp.network
@@ -0,0 +1,5 @@
+[Match]
+Name=eth0
+
+[Network]
+DHCP=yes
--
2.6.4
More information about the openbmc
mailing list