Define new 'obmc-chassis-blackout@.target'
This implements a new target 'obmc-chassis-blackout@.target' that works
to signify that a blackout has occurred on the chassis. This is useful
in situations where the system suffers from a blackout and the user
wants behavior that differs from the default of always running APR.
It will also be attached to services such as phosphor-sensor-states that
will ensure LEDs will be powered off.
Uses the proposed target added here
https://gerrit.openbmc.org/c/openbmc/phosphor-state-manager/+/54364
Tested:
- Booted an image with the corresponding changes to the bitbake
recipe and verified that the new target was found in
"/lib/systemd/system/".
- verified the target could be called by systemctl.
- obmc-chassis-blackout@0.target - Chassis Blackout Target
Loaded: loaded (/lib/systemd/system/obmc-chassis-blackout@.target; static)
Active: inactive (dead)
- started target.
- obmc-chassis-blackout@0.target - Chassis Blackout Target
Loaded: loaded (/lib/systemd/system/obmc-chassis-blackout@.target; static)
Active: active
Signed-off-by: Corey Hardesty <corey.hardesty@icloud.com>
Change-Id: Ic7aded7213153e7ee0d711e02368680ae72d08a8
diff --git a/target_files/meson.build b/target_files/meson.build
index 438b6b3..057da1b 100644
--- a/target_files/meson.build
+++ b/target_files/meson.build
@@ -1,5 +1,6 @@
unit_files = [
'obmc-bmc-service-quiesce@.target',
+ 'obmc-chassis-blackout@.target',
'obmc-chassis-hard-poweroff@.target',
'obmc-chassis-powered-off@.target',
'obmc-chassis-poweroff@.target',