Aktualizr
C++ SOTA Client
All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
bootloader_config.h
1 #ifndef BOOTLOADER_CONFIG_H_
2 #define BOOTLOADER_CONFIG_H_
3 
4 #include <boost/filesystem.hpp>
5 #include <boost/property_tree/ini_parser.hpp>
6 #include <ostream>
7 
8 enum class RollbackMode { kBootloaderNone = 0, kUbootGeneric, kUbootMasked };
9 std::ostream& operator<<(std::ostream& os, RollbackMode mode);
10 
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"};
16 
17  void updateFromPropertyTree(const boost::property_tree::ptree& pt);
18  void writeToStream(std::ostream& out_stream) const;
19 };
20 
21 #endif // BOOTLOADER_CONFIG_H_
BootloaderConfig
Definition: bootloader_config.h:11