diff options
author | Potin Lai <potin.lai@quantatw.com> | 2022-04-12 09:21:33 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2022-04-15 04:55:20 +0300 |
commit | ffe5f920d2a32ddf328a8979f2111a83d7304eaf (patch) | |
tree | 7fece8b8e56870f8cc226d8a72fcb62443425dbe /meta-facebook/meta-bletchley/recipes-bletchley | |
parent | 97c3ce0b0c5fc8acc964179058bb2472eba07754 (diff) | |
download | openbmc-ffe5f920d2a32ddf328a8979f2111a83d7304eaf.tar.xz |
meta-bletchley: motro-ctrl: assign target for host power actions
Assign host-poweron service to obmc-host-startmin target, and
host-poweroff service to obmc-host-shutdown target.
Tested results (obmcutil fixed at host6/chassis6):
- Power On
root@bletchley:~# obmcutil poweron
root@bletchley:~# obmcutil hoststate
CurrentHostState : xyz.openbmc_project.State.Host.HostState.Running
root@bletchley:~# obmcutil chassisstate
CurrentPowerState : xyz.openbmc_project.State.Chassis.PowerState.On
- Power Off
root@bletchley:~# obmcutil poweroff
root@bletchley:~# obmcutil hoststate
CurrentHostState : xyz.openbmc_project.State.Host.HostState.Off
root@bletchley:~# obmcutil chassisstate
CurrentPowerState : xyz.openbmc_project.State.Chassis.PowerState.Off
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ia1de25a49b87347a2e77ec45709a0bb3ed272be9
Diffstat (limited to 'meta-facebook/meta-bletchley/recipes-bletchley')
-rw-r--r-- | meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/motor-ctrl_0.1.bb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/motor-ctrl_0.1.bb b/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/motor-ctrl_0.1.bb index b0640d9fec..88f334936a 100644 --- a/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/motor-ctrl_0.1.bb +++ b/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/motor-ctrl_0.1.bb @@ -28,8 +28,8 @@ do_install() { TGT = "${SYSTEMD_DEFAULT_TARGET}" MOTOR_INIT_INSTFMT="../motor-init-calibration@.service:${TGT}.wants/motor-init-calibration@{0}.service" -PWR_ON_INSTFMT="host-poweron@.service:host-poweron@{0}.service" -PWR_OFF_INSTFMT="host-poweroff@.service:host-poweroff@{0}.service" +PWR_ON_INSTFMT="../host-poweron@.service:obmc-host-startmin@{0}.target.wants/host-poweron@{0}.service" +PWR_OFF_INSTFMT="../host-poweroff@.service:obmc-host-shutdown@{0}.target.wants/host-poweroff@{0}.service" AC_ON_INSTFMT="../host-ac-on@.service:${TGT}.wants/host-ac-on@{0}.service" AC_OFF_INSTFMT="host-ac-off@.service:host-ac-off@{0}.service" |