Change ro to rofs.
- The bmc read only file systems volumes are named rofs-<versionId>.
- This will fix the issue that prevented item_updater from creating
the bmc versionIds after a reboot.
Resolves openbmc/openbmc#2267
Change-Id: I26034cbb8928baba8e551aff795f87a0e2c4a262
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
diff --git a/item_updater.cpp b/item_updater.cpp
index 4b8d534..d230755 100644
--- a/item_updater.cpp
+++ b/item_updater.cpp
@@ -156,11 +156,11 @@
for(const auto& iter : fs::directory_iterator(MEDIA_DIR))
{
auto activationState = server::Activation::Activations::Active;
- static const auto BMC_RO_PREFIX_LEN = strlen(BMC_RO_PREFIX);
+ static const auto BMC_RO_PREFIX_LEN = strlen(BMC_ROFS_PREFIX);
// Check if the BMC_RO_PREFIXis the prefix of the iter.path
if (0 == iter.path().native().compare(0, BMC_RO_PREFIX_LEN,
- BMC_RO_PREFIX))
+ BMC_ROFS_PREFIX))
{
auto osRelease = iter.path() / OS_RELEASE_FILE;
if (!fs::is_regular_file(osRelease))