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.

(From meta-phosphor rev: 56b7928ea464b89f1f585a92549d9026d1b91a43)

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Iffd6a7b9a71a0df0ee1180797db4253051436edf
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc b/meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc
index 6c12da8..10e255d 100644
--- a/meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc
+++ b/meta-phosphor/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