From bb1dfb6a5aeefba70b09dff77f75887f201d5cd9 Mon Sep 17 00:00:00 2001 From: Andrew Geissler Date: Fri, 13 Aug 2021 14:11:06 -0400 Subject: [PATCH] reg-config: ensure runs before chassis power on openbmc/phosphor-state-manager#16 documents an issue with the obmc-power-start-pre@.target. Root cause is unknown at this point. Until root cause is understood there, set the service dependency directly to ensure this service always runs prior to chassis power being turned on. Tested: - Ran 10 power on/off and verified this service always ran before power was turned on to the chassis. Change-Id: I6192d8226f6916ba36b01407f271215bd53c2ab3 Signed-off-by: Andrew Geissler --- services/phosphor-regulators-config.service | 1 + 1 file changed, 1 insertion(+) diff --git a/services/phosphor-regulators-config.service b/services/phosphor-regulators-config.service index 7f59533a..21931849 100644 --- a/services/phosphor-regulators-config.service +++ b/services/phosphor-regulators-config.service @@ -2,6 +2,7 @@ Description=Phosphor Power Regulators Config Wants=obmc-power-start-pre@0.target Before=obmc-power-start-pre@0.target +Before=op-power-start@0.service Conflicts=obmc-chassis-poweroff@0.target # No need to run again if BMC reboots at runtime ConditionPathExists=!/run/openbmc/chassis@0-on