Implement host factory reset in item_updater
This commit implements a factory reset interface for the host.
This factory reset is accomplished by clearing all read/write
PNOR partitions.
Resolves openbmc/openbmc#1574
Change-Id: Ia2c9bd9cf829520bc724abb48aa2df3163f7d78a
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
diff --git a/item_updater_main.cpp b/item_updater_main.cpp
index 0bf710b..c6f7dba 100755
--- a/item_updater_main.cpp
+++ b/item_updater_main.cpp
@@ -10,7 +10,7 @@
// Add sdbusplus ObjectManager.
sdbusplus::server::manager::manager objManager(bus, SOFTWARE_OBJPATH);
- openpower::software::updater::ItemUpdater updater(bus);
+ openpower::software::updater::ItemUpdater updater(bus, SOFTWARE_OBJPATH);
bus.request_name(BUSNAME_UPDATER);