diff --git a/item_updater.cpp b/item_updater.cpp index 7c9a2028..71ed3fd2 100644 --- a/item_updater.cpp +++ b/item_updater.cpp @@ -178,7 +178,8 @@ void ItemUpdater::processBMCImage() // The versionId is extracted from the path // for example /media/ro-2a1022fe. auto id = iter.path().native().substr(BMC_RO_PREFIX_LEN); - auto osRelease = iter.path() / OS_RELEASE_FILE; + fs::path releaseFile(OS_RELEASE_FILE); + auto osRelease = iter.path() / releaseFile.relative_path(); if (!fs::is_regular_file(osRelease)) { log(