commit | 7dc1433c93d7ff98462e4174e0760211c5c67362 | [log] [tgz] |
---|---|---|
author | Andrew Geissler <andrewg@us.ibm.com> | Tue Mar 07 13:47:23 2017 -0600 |
committer | Andrew Geissler <geissonator@yahoo.com> | Wed Mar 15 19:55:23 2017 +0000 |
tree | c1b5c423bf05740b9e6f122a86acbb5008711c0b | |
parent | 997ed6610e4ddb58de3e9c3b42a510efaecb3e8b [diff] |
Automatically check for chassis power on BMC reboot Run the obmc-chassis-reset@.target: - Check if pgood is on - If it is, create the file in /run/openbmc/chassis@%i-on and - Run the systemctl command to start the chassis power on target Resolves openbmc/openbmc#1094 Change-Id: I93f94fc1b75e35fd353387d0bed5569e07615171 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
diff --git a/common/recipes-core/systemd/obmc-targets/obmc-chassis-reset@.target b/common/recipes-core/systemd/obmc-targets/obmc-chassis-reset@.target index 1741d41..ce9e3b0 100644 --- a/common/recipes-core/systemd/obmc-targets/obmc-chassis-reset@.target +++ b/common/recipes-core/systemd/obmc-targets/obmc-chassis-reset@.target
@@ -2,3 +2,6 @@ Description=Chassis%i (Reset Check) Conflicts=obmc-power-chassis-off%i.target RefuseManualStop=yes + +[Install] +WantedBy={SYSTEMD_DEFAULT_TARGET}