summaryrefslogtreecommitdiffstats
path: root/meta-openbmc-machines/meta-openpower
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2017-10-31 12:43:48 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-11-10 16:35:44 +0000
commit9b4de6a950e0640e166dc2b1454e60190072a44c (patch)
tree1abcb4cf68c1950ffc1ad62ab0daacf350b001b6 /meta-openbmc-machines/meta-openpower
parented77544edcfeb2959894639b41e0b6c454e03802 (diff)
downloadtalos-openbmc-9b4de6a950e0640e166dc2b1454e60190072a44c.tar.gz
talos-openbmc-9b4de6a950e0640e166dc2b1454e60190072a44c.zip
updatesymlinks: Only run on host power on
Add a dependency to the updatesymlinks.service to not run in the case that the BMC rebooted while the host was powered on, to prevent the PNOR version from being changed when the host is on. This situation would happen if the user performed a PNOR update at power on (the version is not activated), then rebooted the BMC, the expectation is that the host continues to run the old version until the host is powered off and powered back on. The op-reset-chassis-running@0.service is the one that creates the file in /run/openbmc/ to indicate that the host was on prior to BMC reboot. Resolves openbmc/openbmc#2533 Change-Id: I5169af00c1e992a6c72907733430087defbb48ed Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'meta-openbmc-machines/meta-openpower')
-rw-r--r--meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios-updatesymlinks.service2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios-updatesymlinks.service b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios-updatesymlinks.service
index 4dca5a1a2..d8ee94102 100644
--- a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios-updatesymlinks.service
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios-updatesymlinks.service
@@ -3,6 +3,8 @@ Description=Updates symlinks for active PNOR version
Before=mboxd.service
Before=mboxd-reload@.service
After=org.open_power.Software.Host.Updater.service
+After=op-reset-chassis-running@0.service
+ConditionPathExists=!/run/openbmc/chassis@0-on
[Service]
Type=oneshot
OpenPOWER on IntegriCloud