[PATCH openbmc v2 34/34] host-ipmid: OEM command will require clear-once service
OpenBMC Patches
openbmc-patches at stwcx.xyz
Tue Mar 8 08:30:23 AEDT 2016
From: "Milton D. Miller II" <miltonm at us.ibm.com>
Tell systemd the host-ipmid service wants the clear-once service
to be started, and that it wants to run after the clear-once
service.
The new OEM command will use the openbmc init run once variables
set in the u-boot environment. We want the u-boot variable
cleared before the host can request it be set again.
Tell bitbake to require the clean-once package.
Signed-off-by: Milton Miller <miltonm at us.ibm.com>
---
meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb | 1 +
.../common/recipes-phosphor/host-ipmid/host-ipmid/host-ipmid.service | 2 ++
2 files changed, 3 insertions(+)
diff --git a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb
index 68bd38b..9e25cd2 100644
--- a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb
+++ b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb
@@ -14,6 +14,7 @@ inherit obmc-phosphor-c-daemon
TARGET_CFLAGS += "-fpic"
+RDEPENDS_${PN} += "clear-once"
RDEPENDS_${PN} += "settings"
RDEPENDS_${PN} += "network"
SRC_URI += "git://github.com/openbmc/phosphor-host-ipmid"
diff --git a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid/host-ipmid.service b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid/host-ipmid.service
index ee9ce1a..ce96dbc 100644
--- a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid/host-ipmid.service
+++ b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid/host-ipmid.service
@@ -1,5 +1,7 @@
[Unit]
Description=Phosphor OpenBMC IPMI daemon
+Wants=clear-once.service
+After=clear-once.service
[Service]
ExecStart=/usr/sbin/ipmid
--
2.7.1
More information about the openbmc
mailing list