diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2017-03-07 13:47:23 -0600 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2017-03-15 19:55:23 +0000 |
commit | 579c8e04245bf2022f7c653f991077072b4c9e9c (patch) | |
tree | 832bfb2b733862a0bace62750da096ee106dbb2c /meta-phosphor/common/recipes-core | |
parent | e4577f6245a58771807b75652ab20a3b279a04b9 (diff) | |
download | talos-openbmc-579c8e04245bf2022f7c653f991077072b4c9e9c.tar.gz talos-openbmc-579c8e04245bf2022f7c653f991077072b4c9e9c.zip |
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>
Diffstat (limited to 'meta-phosphor/common/recipes-core')
-rw-r--r-- | meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-chassis-reset@.target | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-chassis-reset@.target b/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-chassis-reset@.target index 1741d4194..ce9e3b015 100644 --- a/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-chassis-reset@.target +++ b/meta-phosphor/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} |