phosphor-state-manager: srcrev bump c079c3f0a3..afe12d69a0
Andrew Geissler (2):
obmcutil: correct new shellcheck warnings
optional service to log info log on chassis poweron
Added a new optional state manager package to pick up new service. This
new service is not installed by default.
Change-Id: Ifcc22ee0369c5c8a33832052585197ffc31a59a8
Signed-off-by: Andrew Geissler <openbmcbump-github@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 fe971ab..fee2daa 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
@@ -118,6 +118,24 @@
done
}
+pkg_postinst:${PN}-chassis-poweron-log:append() {
+ for i in ${OBMC_CHASSIS_INSTANCES};
+ do
+ mkdir -p $D$systemd_system_unitdir/obmc-chassis-poweron@${i}.target.wants
+ LINK="$D$systemd_system_unitdir/obmc-chassis-poweron@${i}.target.wants/phosphor-create-chassis-poweron-log@${i}.service"
+ TARGET="../phosphor-create-chassis-poweron-log@.service"
+ ln -s $TARGET $LINK
+ done
+}
+
+pkg_prerm:${PN}-chassis-poweron-log:append() {
+ for i in ${OBMC_CHASSIS_INSTANCES};
+ do
+ LINK="$D$systemd_system_unitdir/obmc-chassis-poweron@${i}.target.wants/phosphor-create-chassis-poweron-log@${i}.service"
+ rm $LINK
+ done
+}
+
pkg_postinst:${PN}-host:append() {
for i in ${OBMC_HOST_INSTANCES};
do