commit | ab0a9277b1fa99864683a11383beffed743ad4ae | [log] [tgz] |
---|---|---|
author | Matt Spinler <spinler@us.ibm.com> | Wed Mar 15 16:42:54 2017 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Thu Mar 16 21:42:13 2017 +0000 |
tree | db19b89f51c081883a99ea4f39c1bbd0c3b08096 | |
parent | dcb5b7652f9a1e9134bdad60d9de85b9a87e1623 [diff] [blame] |
Templatize host-failure-reboots service This service touches a host0 setting, so it needs to be a template and touch host%i. Change-Id: I9cf84ec40f5fe3aa1ad2c420aaa26d522eece6e1 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/meta-phosphor/common/recipes-phosphor/chassis/obmc-host-failure-reboots.bb b/meta-phosphor/common/recipes-phosphor/chassis/obmc-host-failure-reboots.bb index e0f9b84..645f40c 100644 --- a/meta-phosphor/common/recipes-phosphor/chassis/obmc-host-failure-reboots.bb +++ b/meta-phosphor/common/recipes-phosphor/chassis/obmc-host-failure-reboots.bb
@@ -6,4 +6,9 @@ inherit obmc-phosphor-systemd inherit obmc-phosphor-license -SYSTEMD_SERVICE_${PN} += "host-failure-reboots.service" +TMPL = "host-failure-reboots@.service" +INSTFMT = "host-failure-reboots@{0}.service" +LINK_FMT = "${TMPL}:${INSTFMT}" + +SYSTEMD_SERVICE_${PN} += "${TMPL}" +SYSTEMD_LINK_${PN} += "${@compose_list(d, 'LINK_FMT', 'OBMC_HOST_INSTANCES')}"