Fix boost process call for SEL Clear again
The boost::process::seach_path() call to find journalctl caused the
library to fail to register the OEM IPMI commands. This change
uses the hardcoded path to journalctl instead.
Tested: Verified that the OEM commands are getting registered from
the library and that SEL Clear executes the journalctl call.
Change-Id: Ibfe3aff170269b4395d9ab5ad5dc81ff68b63886
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
diff --git a/src/storagecommands.cpp b/src/storagecommands.cpp
index ad9d182..1d294f9 100644
--- a/src/storagecommands.cpp
+++ b/src/storagecommands.cpp
@@ -1041,13 +1041,11 @@
// Clear the SEL by by rotating the journal to start a new file then
// vacuuming to keep only the new file
- if (boost::process::system(boost::process::search_path("journalctl"),
- "--rotate") != 0)
+ if (boost::process::system("/bin/journalctl", "--rotate") != 0)
{
return IPMI_CC_UNSPECIFIED_ERROR;
}
- if (boost::process::system(boost::process::search_path("journalctl"),
- "--vacuum-files=1") != 0)
+ if (boost::process::system("/bin/journalctl", "--vacuum-files=1") != 0)
{
return IPMI_CC_UNSPECIFIED_ERROR;
}