diff options
author | Andrew Geissler <geissonator@yahoo.com> | 2023-06-28 22:11:16 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2023-07-05 19:48:51 +0300 |
commit | 57ab960cac198378f2a924631c680daed2a67e56 (patch) | |
tree | ee27a83bebff4dbfd06427e28143d4f1a55492ad /meta-phosphor/recipes-phosphor/chassis | |
parent | 0af113bb385783379ddbb4b039f64fd4dbfdc220 (diff) | |
download | openbmc-57ab960cac198378f2a924631c680daed2a67e56.tar.xz |
phosphor-skeleton-control-power: install service properly
The latest systemd requires templated services be installed properly. As
this is skeleton, just do the minimum to get the service installed
properly.
Tested:
- Confirmed service installed as expected:
```
/rootfs/usr/lib/systemd/system/multi-user.target.wants/org.openbmc.control.Power@0.service
```
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I36607d361ba8b6a9c8055435e8af5dba12dd07eb
Diffstat (limited to 'meta-phosphor/recipes-phosphor/chassis')
-rw-r--r-- | meta-phosphor/recipes-phosphor/chassis/phosphor-skeleton-control-power_git.bb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta-phosphor/recipes-phosphor/chassis/phosphor-skeleton-control-power_git.bb b/meta-phosphor/recipes-phosphor/chassis/phosphor-skeleton-control-power_git.bb index 5802bd3b74..aae0480941 100644 --- a/meta-phosphor/recipes-phosphor/chassis/phosphor-skeleton-control-power_git.bb +++ b/meta-phosphor/recipes-phosphor/chassis/phosphor-skeleton-control-power_git.bb @@ -11,8 +11,11 @@ DEPENDS += "libmapper systemd" SKELETON_DIR = "op-pwrctl" -OBMC_CONTROL_POWER_FMT ?= "org.openbmc.control.Power@{0}.service" -DBUS_SERVICE:${PN} += "${@compose_list(d, 'OBMC_CONTROL_POWER_FMT', 'OBMC_POWER_INSTANCES')}" +DBUS_SERVICE:${PN} += "org.openbmc.control.Power@.service" +OBMC_CONTROL_INST = "org.openbmc.control.Power@{0}.service" +OBMC_CONTROL_SVC = "org.openbmc.control.Power@.service" +OBMC_CONTROL_FMT = "../${OBMC_CONTROL_SVC}:multi-user.target.wants/${OBMC_CONTROL_INST}" +SYSTEMD_LINK:${PN} += "${@compose_list(d, 'OBMC_CONTROL_FMT', 'OBMC_POWER_INSTANCES')}" SYSTEMD_SERVICE:${PN} += " \ phosphor-wait-power-on@.service \ |