Allow Suspend as CriticalPowerAction
This allows the Suspend as the CriticalPowerAction. Since it is an unusual configuration for ordinary systems and only for the specific use case, AllowRiskyCriticalPowerAction
is introduced to make sure this risky feature can't be easily enabled. If and only if AllowRiskyCriticalPowerAction
is set to true
and CriticalPowerAction
is set to Suspend
, this feature can be enabled. Otherwise, Power off
will be the default CriticalPowerAction
.
Moreover, if the user insists on setting the Suspend
as the CriticalPowerAction
, the warning message will be shown in the log or journal to notify the user about the risk.
Closes: #23 (closed)
Closes: #59 (closed)