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>
1 file changed