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>
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 0000000..88db043
--- /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 0000000..490af9b
--- /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