summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-phosphor/state
diff options
context:
space:
mode:
authorAndrew Geissler <geissonator@yahoo.com>2023-01-18 00:31:08 +0300
committerPatrick Williams <patrick@stwcx.xyz>2023-01-18 19:30:46 +0300
commit7f90ad8badc790543c1ef64a538efc584890c084 (patch)
treeaf7f71996318c2ce2ae37f4f80e13ada83140c72 /meta-phosphor/recipes-phosphor/state
parentcb60e5614a725106176e35867559c3ca256f3b02 (diff)
downloadopenbmc-7f90ad8badc790543c1ef64a538efc584890c084.tar.xz
phosphor-state-manager: ensure scheduled-host-transition installed
When the host services associated with phosphor-state-manager were moved over to support multi-host, the scheduled-host-transition feature was also moved over. Need to also install its service like the other multi-host services. Tested: - Built a witherspoon image and verified service was in proper place Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I40a2a3d8053763e368de4f02827105b2cc2f05df
Diffstat (limited to 'meta-phosphor/recipes-phosphor/state')
-rw-r--r--meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc18
1 files changed, 18 insertions, 0 deletions
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 7e142e7ae3..c9763017c6 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
@@ -110,3 +110,21 @@ pkg_prerm:${PN}-host:append() {
rm $LINK
done
}
+
+pkg_postinst:${PN}-scheduled-host-transition:append() {
+ for i in ${OBMC_HOST_INSTANCES};
+ do
+ mkdir -p $D$systemd_system_unitdir/multi-user.target.wants
+ LINK="$D$systemd_system_unitdir/multi-user.target.wants/xyz.openbmc_project.State.ScheduledHostTransition@${i}.service"
+ TARGET="../xyz.openbmc_project.State.ScheduledHostTransition@.service"
+ ln -s $TARGET $LINK
+ done
+}
+
+pkg_prerm:${PN}-scheduled-host-transition:append() {
+ for i in ${OBMC_HOST_INSTANCES};
+ do
+ LINK="$D$systemd_system_unitdir/multi-user.target.wants/xyz.openbmc_project.State.ScheduledHostTransition@${i}.service"
+ rm $LINK
+ done
+}