Fix the function that is responsible for deleting bmc ubi volumes
- The current script was checking for ubi4:rofs-<versionId>
inside /proc/mount but it is listed as /media/rofs-<versionId>.
Therefore the service files that removes the ubi volumes were
failing.
Change-Id: Ie715e4b82d1e9c15708318cae367636d26642af3
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
diff --git a/meta-phosphor/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc b/meta-phosphor/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc
index 4c32ab4..60e976b 100644
--- a/meta-phosphor/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc
+++ b/meta-phosphor/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc
@@ -161,8 +161,8 @@
if [ ! -z "$vol" ]; then
vol="${vol%_*}"
- if grep -q "${vol}:$rmname" /proc/mounts; then
- mountdir=$(grep "${vol}:$rmname" /proc/mounts | cut -d " " -f 2)
+ if grep -q "$rmname" /proc/mounts; then
+ mountdir=$(grep "$rmname" /proc/mounts | cut -d " " -f 2)
umount "$mountdir"
rm -r "$mountdir"
fi