diff options
author | Jason M. Bills <jason.m.bills@linux.intel.com> | 2019-06-25 21:34:29 +0300 |
---|---|---|
committer | Feist, James <james.feist@intel.com> | 2019-07-02 23:33:12 +0300 |
commit | d8fc85b7394dc597cbaa7bda13a2594d1a8a929f (patch) | |
tree | 7eba11b6ea2c98f8f8dc77f997a4babd14b9573f /settings | |
parent | e141154cfb4a3e50c6cfa0a124584ec9ab12e2c1 (diff) | |
download | provingground-d8fc85b7394dc597cbaa7bda13a2594d1a8a929f.tar.xz |
Add a setting for AC Boot status
This adds a setting that defaults to "Unknown" and is updated to
"True" or "False" based on the boot status provided by u-boot on
the command line.
Tested:
Verified that the AC Boot setting is created with the default value
of "Unkown" on each boot.
Combined with the AC Boot check change, this makes the power
restore policy behave as expected.
Change-Id: I6358956464a71078fd8e3ff989a6fcf0b17b1028
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/include/defaults.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/settings/include/defaults.hpp b/settings/include/defaults.hpp index 75cc59a..14c870c 100644 --- a/settings/include/defaults.hpp +++ b/settings/include/defaults.hpp @@ -246,6 +246,12 @@ inline void loadSettings(sdbusplus::asio::object_server &objectServer, setting->addProperty("RestartCause", "xyz.openbmc_project.State.Host.RestartCause.Unknown"); + setting = &settings.emplace_back( + objectServer, "/xyz/openbmc_project/control/host0/ac_boot", + "xyz.openbmc_project.Common.ACBoot"); + + setting->addProperty("ACBoot", "Unknown", false); + for (SettingsInterface &s : settings) { s.initialize(); |