summaryrefslogtreecommitdiffstats
path: root/tools/updater.hpp
diff options
context:
space:
mode:
authorBrandon Kim <brandonkim@google.com>2019-09-19 13:31:37 -0700
committerBrandon Kim <brandonkim@google.com>2019-09-19 19:39:05 -0700
commit6749ba1c93c9b4f65c9ef7791987fc2f98bc15d1 (patch)
tree78c5c89b89da73cfcad2f308643f90097b1f300b /tools/updater.hpp
parentcec91dd139a026753eedd7af7db546b78462a451 (diff)
downloadphosphor-ipmi-flash-6749ba1c93c9b4f65c9ef7791987fc2f98bc15d1.tar.gz
phosphor-ipmi-flash-6749ba1c93c9b4f65c9ef7791987fc2f98bc15d1.zip
tools: Add ignoreUpdate parameter
Adds ignoreUpdate flag to skip checking the update status and always return success instead. This is needed for platforms that use the reboot json and encounters an update failure due to IPMI going down during shutdown. Tested: Tried out an update with and without --ignore-update to verify that the flag ignores the update status and returns success. Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: Ie20774f997229cd5ff8ae9082dc8a747079f9a2c
Diffstat (limited to 'tools/updater.hpp')
-rw-r--r--tools/updater.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/updater.hpp b/tools/updater.hpp
index 331b551..4cae534 100644
--- a/tools/updater.hpp
+++ b/tools/updater.hpp
@@ -15,10 +15,11 @@ namespace host_tool
* @param[in] imagePath - the path to the image file.
* @param[in] signaturePath - the path to the signature file.
* @param[in] layoutType - the image update layout type (static/ubi/other)
+ * @param[in] ignoreUpdate - determines whether to ignore the update status
* @throws ToolException on failures.
*/
void updaterMain(UpdateHandlerInterface* updater, const std::string& imagePath,
const std::string& signaturePath,
- const std::string& layoutType);
+ const std::string& layoutType, bool ignoreUpdate);
} // namespace host_tool
OpenPOWER on IntegriCloud