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
diff --git a/meta-phosphor/recipes-phosphor/state/phosphor-state-manager_git.bb b/meta-phosphor/recipes-phosphor/state/phosphor-state-manager_git.bb
index e5393ba..61e325d 100644
--- a/meta-phosphor/recipes-phosphor/state/phosphor-state-manager_git.bb
+++ b/meta-phosphor/recipes-phosphor/state/phosphor-state-manager_git.bb
@@ -23,6 +23,7 @@
     ${PN}-scheduled-host-transition \
     ${PN}-chassis-check-power-status \
     ${PN}-secure-check \
+    ${PN}-chassis-poweron-log \
 "
 PACKAGE_BEFORE_PN += "${STATE_MGR_PACKAGES}"
 ALLOW_EMPTY:${PN} = "1"
@@ -80,6 +81,8 @@
 SYSTEMD_SERVICE:${PN}-chassis += "phosphor-reset-chassis-on@.service"
 SYSTEMD_SERVICE:${PN}-chassis += "phosphor-reset-chassis-running@.service"
 
+SYSTEMD_SERVICE:${PN}-chassis-poweron-log += "phosphor-create-chassis-poweron-log@.service"
+
 FILES:${PN}-chassis += "${bindir}/obmcutil"
 
 FILES:${PN}-bmc = "${bindir}/phosphor-bmc-state-manager"
@@ -236,6 +239,6 @@
 SYSTEMD_LINK:${PN}-obmc-targets += "${@compose_list_zip(d, 'RESET_FMT_CTRL', 'OBMC_CHASSIS_INSTANCES')}"
 
 SRC_URI = "git://github.com/openbmc/phosphor-state-manager;branch=master;protocol=https"
-SRCREV = "c079c3f0a348b1f1e32b05b07fdb6414c8d3b53f"
+SRCREV = "afe12d69a0c8182e7b587d81531e0a9e376f5ce7"
 
 S = "${WORKDIR}/git"