From 9b4de6a950e0640e166dc2b1454e60190072a44c Mon Sep 17 00:00:00 2001 From: Adriana Kobylak Date: Tue, 31 Oct 2017 12:43:48 -0500 Subject: 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 --- .../openpower-software-manager/obmc-flash-bios-updatesymlinks.service | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta-openbmc-machines/meta-openpower') 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 -- cgit v1.2.1