bmc/buildjson: Allow for systemd verification services
Now that we can inspect the status of systemd units, this is a perfectly
valid configuration.
Tested:
Modified scripting to use systemd type services in place of their
fileSystem variants and their status was correctly reported through
the verification and update phases.
Change-Id: I46ab0da1f71a1098d49de9feb24d7e26c1c4bf68
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/bmc/buildjson.cpp b/bmc/buildjson.cpp
index 45796ca..478fb7c 100644
--- a/bmc/buildjson.cpp
+++ b/bmc/buildjson.cpp
@@ -133,6 +133,10 @@
{
pack->verification = std::move(buildFileSystemd(verify));
}
+ else if (verifyType == "systemd")
+ {
+ pack->verification = std::move(buildSystemd(verify));
+ }
else
{
throw std::runtime_error("Invalid verification type:" +