autoreboot: one-time object support
The new one_time D-Bus object is utilized for setting RebootPolicy for a
single boot. phosphor-state-manager will always look at this object
first for reboot policy, if it is the default of true, then
phosphor-state-manager will then look at the persistent user setting
under the non one_time object path.
See the following commit for more info:
https://github.com/openbmc/meta-phosphor/commit/7d29e7a2c135e91b222c57c66bb7ca61aae6398e
Tested:
Via some debug statements, confirmed that Path variables are both
updated with correct settings object.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I8ef882633237529e03070607542b9acc218dffc6
diff --git a/settings.hpp b/settings.hpp
index dca5cf9..de8be65 100644
--- a/settings.hpp
+++ b/settings.hpp
@@ -44,9 +44,12 @@
*/
Service service(const Path& path, const Interface& interface) const;
- /** @brief host auto_reboot settings object */
+ /** @brief host auto_reboot user settings object */
Path autoReboot;
+ /** @brief host auto_reboot one-time settings object */
+ Path autoRebootOneTime;
+
/** @brief host power_restore_policy settings object */
Path powerRestorePolicy;