1 #ifndef BOOTLOADER_CONFIG_H_
2 #define BOOTLOADER_CONFIG_H_
4 #include <boost/filesystem.hpp>
5 #include <boost/property_tree/ini_parser.hpp>
8 enum class RollbackMode { kBootloaderNone = 0, kUbootGeneric, kUbootMasked };
9 std::ostream& operator<<(std::ostream& os, RollbackMode mode);
12 RollbackMode rollback_mode{RollbackMode::kBootloaderNone};
13 boost::filesystem::path reboot_sentinel_dir{
"/var/run/aktualizr-session"};
14 boost::filesystem::path reboot_sentinel_name{
"need_reboot"};
15 std::string reboot_command{
"/sbin/reboot"};
17 void updateFromPropertyTree(
const boost::property_tree::ptree& pt);
18 void writeToStream(std::ostream& out_stream)
const;
21 #endif // BOOTLOADER_CONFIG_H_