From 0b7e3d6e2382f6836f151ae9a7a956b9b177608e Mon Sep 17 00:00:00 2001 From: Andrew Geissler Date: Thu, 4 Feb 2021 14:27:57 -0600 Subject: power-restore: define new one_time property IBM has a use case where it wishes to utilize the power-restore functionality for a firmware update path. A firmware update is initiated through the host operating system. Once it has completed writing the BMC flash, the host wants to initiated a power off of the system, a reboot of the BMC, and then an automatic power on of the host. Instead of writing special software to handle this automatic boot of the host after the BMC has rebooted, lets utilize a one_time setting within the power-restore logic. Signed-off-by: Andrew Geissler Change-Id: I4964004e3b1827853ff00437172196e4fbbfcc46 --- .../settings/phosphor-settings-defaults/defaults.yaml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'meta-phosphor/recipes-phosphor/settings/phosphor-settings-defaults/defaults.yaml') diff --git a/meta-phosphor/recipes-phosphor/settings/phosphor-settings-defaults/defaults.yaml b/meta-phosphor/recipes-phosphor/settings/phosphor-settings-defaults/defaults.yaml index f2df02d32..32b32e840 100644 --- a/meta-phosphor/recipes-phosphor/settings/phosphor-settings-defaults/defaults.yaml +++ b/meta-phosphor/recipes-phosphor/settings/phosphor-settings-defaults/defaults.yaml @@ -58,6 +58,12 @@ PowerRestorePolicy: Default: RestorePolicy::Policy::AlwaysOff +/xyz/openbmc_project/control/host0/power_restore_policy/one_time: + - Interface: xyz.openbmc_project.Control.Power.RestorePolicy + Properties: + PowerRestorePolicy: + Default: RestorePolicy::Policy::AlwaysOff + /xyz/openbmc_project/time/sync_method: - Interface: xyz.openbmc_project.Time.Synchronization Properties: -- cgit v1.2.3