host-quiesce: generate a bmc dump

In some situations, host firmware failing to boot is the result of the
BMC firmware. In order to debug this, a BMC dump is desired in these
scenarios. A BMC dump also captures useful data for the host firmware
(error logs and host console output).

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Ib59f2c14e54a842fb2cffbdaf1f4a6cebc9115e3
diff --git a/host_state_manager.cpp b/host_state_manager.cpp
index 9639a4b..c35412d 100644
--- a/host_state_manager.cpp
+++ b/host_state_manager.cpp
@@ -262,6 +262,10 @@
                 utils::createError(this->bus, errorMsg,
                                    sdbusplus::xyz::openbmc_project::Logging::
                                        server::Entry::Level::Critical);
+
+                // Generate BMC dump to assist with debug
+                utils::createBmcDump(this->bus);
+
                 return false;
             }
         }