install host state transition services
See the following for more details:
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-state-manager/+/39359
This will install the services required to get the TransitionToRunning
and TransitionToOff support for CurrentHostState.
Includes following in bump:
Andrew Geissler (1):
host state transitioning support
Tested:
- Verified CurrentHostState changed as expected doing a host on, off,
and reboot.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I5cf2ea840744fa179585b032a00e453219d237c3
diff --git a/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc b/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc
index 6c12da8..10e255d 100644
--- a/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc
+++ b/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc
@@ -18,6 +18,16 @@
TARGET="../phosphor-reset-host-reboot-attempts@.service"
ln -s $TARGET $LINK
+ mkdir -p $D$systemd_system_unitdir/obmc-host-startmin@0.target.wants
+ LINK="$D$systemd_system_unitdir/obmc-host-startmin@0.target.wants/phosphor-set-host-transition-to-running@0.service"
+ TARGET="../phosphor-set-host-transition-to-running@.service"
+ ln -s $TARGET $LINK
+
+ mkdir -p $D$systemd_system_unitdir/obmc-host-stop@0.target.wants
+ LINK="$D$systemd_system_unitdir/obmc-host-stop@0.target.wants/phosphor-set-host-transition-to-off@0.service"
+ TARGET="../phosphor-set-host-transition-to-off@.service"
+ ln -s $TARGET $LINK
+
mkdir -p $D$systemd_system_unitdir/obmc-host-reset@0.target.requires
LINK="$D$systemd_system_unitdir/obmc-host-reset@0.target.requires/phosphor-reset-host-check@0.service"
TARGET="../phosphor-reset-host-check@.service"
@@ -98,6 +108,12 @@
LINK="$D$systemd_system_unitdir/obmc-host-start@0.target.requires/phosphor-reset-host-reboot-attempts@0.service"
rm $LINK
+ LINK="$D$systemd_system_unitdir/obmc-host-startmin@0.target.wants/phosphor-set-host-transition-to-running@0.service"
+ rm $LINK
+
+ LINK="$D$systemd_system_unitdir/obmc-host-stop@0.target.wants/phosphor-set-host-transition-to-off@0.service"
+ rm $LINK
+
LINK="$D$systemd_system_unitdir/obmc-host-reset@0.target.requires/phosphor-reset-host-check@0.service"
rm $LINK