bmc: add cleanup blob handler
Add a cleanup blob handler, such that there is a new blob id present
named "/flash/cleanup" that will delete temporary files. This blob
handler expects a client to open/commit/close the blob. This blob
handler will delete files that are specified as temporary. The host
client may use this to clean up artifacts on verification or update
failure.
This can be extended later to handle calling a service or doing anything
else to cleanup. The cleanup handler will be added if
--enable-cleanup-delete. The recipe will automatically add this blob
handler if that configure variable is set.
Tested: Not tested on real hardware.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I4502b2613e38f0a947d7235d084287376c6b0ce1
diff --git a/util.cpp b/util.cpp
index be18d72..421fbaa 100644
--- a/util.cpp
+++ b/util.cpp
@@ -26,5 +26,6 @@
const std::string activeHashBlobId = "/flash/active/hash";
const std::string staticLayoutBlobId = "/flash/image";
const std::string ubiTarballBlobId = "/flash/tarball";
+const std::string cleanupBlobId = "/flash/cleanup";
} // namespace ipmi_flash