diff options
Diffstat (limited to 'static/item_updater_static.hpp')
-rw-r--r-- | static/item_updater_static.hpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/static/item_updater_static.hpp b/static/item_updater_static.hpp index c3f273d37..40f616bcb 100644 --- a/static/item_updater_static.hpp +++ b/static/item_updater_static.hpp @@ -9,6 +9,19 @@ namespace software namespace updater { +class GardResetStatic : public GardReset +{ + public: + using GardReset::GardReset; + virtual ~GardResetStatic() = default; + + protected: + /** + * @brief GARD factory reset - clears the PNOR GARD partition. + */ + void reset() override; +}; + /** @class ItemUpdaterStatic * @brief Manages the activation of the host version items for static layout */ @@ -19,7 +32,7 @@ class ItemUpdaterStatic : public ItemUpdater ItemUpdater(bus, path) { processPNORImage(); - gardReset = std::make_unique<GardReset>(bus, GARD_PATH); + gardReset = std::make_unique<GardResetStatic>(bus, GARD_PATH); volatileEnable = std::make_unique<ObjectEnable>(bus, volatilePath); // Emit deferred signal. |