diff options
author | Potin Lai <potin.lai@quantatw.com> | 2022-04-11 10:10:03 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2022-04-15 04:27:47 +0300 |
commit | 97c3ce0b0c5fc8acc964179058bb2472eba07754 (patch) | |
tree | 9e5089cd01ca75f51ab487b2728491c2dd11b80c /meta-facebook/meta-bletchley/recipes-phosphor | |
parent | b858c0e167717b012ffecf56904d797d307a96ab (diff) | |
download | openbmc-97c3ce0b0c5fc8acc964179058bb2472eba07754.tar.xz |
meta-bletchley: phosphor-setting-manager: override power restore policy
Override host power restore policy deafult to Restore.
Tested result after factory reset:
root@bletchley:~# for i in {1..6}; do \
> busctl get-property xyz.openbmc_project.Settings\
> /xyz/openbmc_project/control/host${i}/power_restore_policy\
> xyz.openbmc_project.Control.Power.RestorePolicy\
> PowerRestorePolicy;\
> done
s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.Restore"
s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.Restore"
s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.Restore"
s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.Restore"
s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.Restore"
s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.Restore"
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Id32aa6e06413e7226fe8b33020ca26196e5c9bca
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'meta-facebook/meta-bletchley/recipes-phosphor')
2 files changed, 11 insertions, 0 deletions
diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native.bbappend b/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native.bbappend new file mode 100644 index 0000000000..88db043042 --- /dev/null +++ b/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native.bbappend @@ -0,0 +1,4 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" +SRC_URI:append = " file://bletchley_settings.override.yml" + +SETTINGS_HOST_TEMPLATES:append = " bletchley_settings.override.yml" diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native/bletchley_settings.override.yml b/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native/bletchley_settings.override.yml new file mode 100644 index 0000000000..490af9b8c6 --- /dev/null +++ b/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native/bletchley_settings.override.yml @@ -0,0 +1,7 @@ +/xyz/openbmc_project/control/host{}/power_restore_policy: + - Interface: xyz.openbmc_project.Control.Power.RestorePolicy + Properties: + PowerRestorePolicy: + Default: RestorePolicy::Policy::Restore + PowerRestoreDelay: + Default: 0 |