summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2022-04-20 23:01:07 +0300
committerPatrick Williams <patrick@stwcx.xyz>2022-04-21 22:20:09 +0300
commit954512d5d9584499344a6a228367255367271ed9 (patch)
treeb882ae9de448d2076f24b9c29e20ed716cfdced1
parent83a7aa99cbd4ecdf7a1724a87093c7b4150d89c6 (diff)
downloadopenbmc-954512d5d9584499344a6a228367255367271ed9.tar.xz
phosphor-state-manager: use CHASSIS_INSTANCE for chassis service
Some systems have more chassis than hosts. Use the OBMC_CHASSIS_INSTANCES variable instead of OBMC_HOST_INSTANCES for instantiating the service symlinks. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I42eb92a68023788fc8c06e63ed3eb6eb714bf55c
-rw-r--r--meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc5
1 files changed, 3 insertions, 2 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 aa0dc0ebf8..37932b4b9d 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
@@ -103,13 +103,14 @@ pkg_postinst:${PN}-obmc-targets:append() {
}
pkg_postinst:${PN}-chassis:append() {
- for i in ${OBMC_HOST_INSTANCES};
+ for i in ${OBMC_CHASSIS_INSTANCES};
do
mkdir -p $D$systemd_system_unitdir/multi-user.target.requires
LINK="$D$systemd_system_unitdir/multi-user.target.requires/xyz.openbmc_project.State.Chassis@${i}.service"
TARGET="../xyz.openbmc_project.State.Chassis@.service"
ln -s $TARGET $LINK
+
done
}
@@ -193,7 +194,7 @@ pkg_prerm:${PN}-obmc-targets:append() {
}
pkg_prerm:${PN}-chassis:append() {
- for i in ${OBMC_HOST_INSTANCES};
+ for i in ${OBMC_CHASSIS_INSTANCES};
do
LINK="$D$systemd_system_unitdir/multi-user.target.requires/xyz.openbmc_project.State.Chassis@${i}.service"