[PATCH openbmc] Update recipe and service file for phosphor-networkd
OpenBMC Patches
openbmc-patches at stwcx.xyz
Mon Jun 20 22:00:58 AEST 2016
From: vishwa <vishwanath at in.ibm.com>
Commit c69c3d3 for phosphor-netword introduced DNS support.
This change will update the bitbake file to point to correct commit
and also creates the service file to start DNS updater.
Fixes openbmc/openbmc#134
---
meta-phosphor/common/recipes-phosphor/network/network.bb | 6 +++++-
.../network/network/network-update-dns.service | 10 ++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
create mode 100644 meta-phosphor/common/recipes-phosphor/network/network/network-update-dns.service
diff --git a/meta-phosphor/common/recipes-phosphor/network/network.bb b/meta-phosphor/common/recipes-phosphor/network/network.bb
index 7129898..d35f26c 100644
--- a/meta-phosphor/common/recipes-phosphor/network/network.bb
+++ b/meta-phosphor/common/recipes-phosphor/network/network.bb
@@ -5,17 +5,21 @@ PR = "r1"
inherit obmc-phosphor-license
inherit obmc-phosphor-systemd
+inherit obmc-phosphor-sdbus-service
+
+SYSTEMD_SERVICE_${PN} += "network.service network-update-dns.service"
RDEPENDS_${PN} += "python-dbus python-pygobject"
SRC_URI += "git://github.com/openbmc/phosphor-networkd"
-SRCREV = "fbf7d68e78684739ff860f20f6cbdd0932003912"
+SRCREV = "c69c3d30fd7d5fd04ba990788b6d75b19f275fc8"
S = "${WORKDIR}/git"
do_install() {
install -d ${D}/${sbindir}
install ${S}/netman.py ${D}/${sbindir}
+ install ${S}/netman_watch_dns ${D}/${sbindir}
}
diff --git a/meta-phosphor/common/recipes-phosphor/network/network/network-update-dns.service b/meta-phosphor/common/recipes-phosphor/network/network/network-update-dns.service
new file mode 100644
index 0000000..ad14aab
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/network/network/network-update-dns.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=DNS update handler
+Requires=network.service
+After=network.service
+
+[Service]
+ExecStart=/usr/sbin/netman_watch_dns /run/systemd/netif/state
+
+[Install]
+WantedBy=multi-user.target
--
2.8.4
More information about the openbmc
mailing list