Do not execute CFAM reset while memory preserve reboot
The CFAM reset should not be executed during a memory preserve
reboot so adding a conditional check to execlude the that path.
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
Change-Id: I49315d8a40019dd395b2d44a880ee3b8fe3f2f7a
diff --git a/op-cfam-reset.service.in b/op-cfam-reset.service.in
index 00bf463..5b409bf 100644
--- a/op-cfam-reset.service.in
+++ b/op-cfam-reset.service.in
@@ -5,6 +5,7 @@
After=op-occ-disable@0.service
Before=obmc-host-startmin@0.target
Conflicts=obmc-host-startmin@0.target
+ConditionPathExists=!/run/openbmc/mpreboot@0
[Service]
RemainAfterExit=yes