summaryrefslogtreecommitdiff
path: root/meta-fii
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2022-04-07 22:05:22 +0300
committerWilliam A. Kennington III <wak@google.com>2022-04-16 03:30:29 +0300
commitff50d27fb7f718805e15c5cdc586a6e65b929540 (patch)
treebf34296d4fb11228f60ac6138338191ccdb76aa5 /meta-fii
parent1e9d916dbaacef00067a70014ded9783b5aa9d93 (diff)
downloadopenbmc-ff50d27fb7f718805e15c5cdc586a6e65b929540.tar.xz
meta-fii: kudo: Hotswap after target
We want it to be possible to order units prior to the powercycle event if state needs to be persisted prior to a powercycle. We also no longer need the logic to handle waiting for the delay as this is now part of the global target logic. Change-Id: Icba008e66c81834a65099a25b1af4f7bde4e94b5 Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'meta-fii')
-rw-r--r--meta-fii/meta-kudo/recipes-kudo/hotswap-power-cycle/files/hotswap-power-cycle.service8
1 files changed, 2 insertions, 6 deletions
diff --git a/meta-fii/meta-kudo/recipes-kudo/hotswap-power-cycle/files/hotswap-power-cycle.service b/meta-fii/meta-kudo/recipes-kudo/hotswap-power-cycle/files/hotswap-power-cycle.service
index f9f03e7c37..73b516041e 100644
--- a/meta-fii/meta-kudo/recipes-kudo/hotswap-power-cycle/files/hotswap-power-cycle.service
+++ b/meta-fii/meta-kudo/recipes-kudo/hotswap-power-cycle/files/hotswap-power-cycle.service
@@ -1,14 +1,10 @@
[Unit]
Description=Power Cycle by Hotswap Controller
+After=gbmc-psu-hardreset.target
[Service]
-Environment= PSU_HARDRESET_DELAY=1
-EnvironmentFile=-/run/psu_timedelay
-ExecStartPre=sleep $PSU_HARDRESET_DELAY
-ExecStart=gpioset 2 30=1
-Restart=no
Type=oneshot
-RemainAfterExit=true
+ExecStart=gpioset 2 30=1
StandardOutput=syslog
[Install]