Add optional reboot on BMC Quiesced
Add a systemd oneshot service (phosphor-bmc-quiesce-reboot.service)
that reboots the BMC. When linked into
obmc-bmc-service-quiesce@0.target.wants, the BMC will reboot upon
entering the BMC Quiesced target.
This change introduces a Meson feature option
"auto-reboot-on-bmc-quiesce" (disabled by default). When enabled, the
build installs a symlink from obmc-bmc-service-quiesce@0.target.wants
to phosphor-bmc-quiesce-reboot.service.
Motivation:
When critical services fail and the BMC enters Quiesced, a full BMC
reboot is often the cleanest recovery path. Making this policy
configurable allows platforms to automatically reboot on Quiesced.
Change-Id: I6c945dd1174723a26d4942b07a8e896131edc993
Signed-off-by: Eric Yang <eric.yang.wiwynn@gmail.com>
diff --git a/meson.options b/meson.options
index f7a3efc..f24d068 100644
--- a/meson.options
+++ b/meson.options
@@ -181,3 +181,10 @@
value: true,
description: 'run APR when BMC has been rebooted due to software request',
)
+
+option(
+ 'auto-reboot-on-bmc-quiesce',
+ type: 'feature',
+ value: 'enabled',
+ description: 'Link phosphor-bmc-quiesce-reboot.service into obmc-bmc-service-quiesce@0.target.wants to automatically reboot when BMC enters Quiesced',
+)