aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/yardstick-img-modify8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/yardstick-img-modify b/tools/yardstick-img-modify
index 1743d908a..68ce6e223 100755
--- a/tools/yardstick-img-modify
+++ b/tools/yardstick-img-modify
@@ -154,9 +154,11 @@ cleanup() {
mount | grep "/mnt/vivid" && umount "/mnt/vivid"
if [ -f $raw_imgfile ]; then
- if [ -z "$(kpartx -l $raw_imgfile | grep 'loop deleted')" ]; then
- kpartx -dv $raw_imgfile
- fi
+ #kpartx -dv $raw_imgfile sometimes failed, we should checked it agein.
+ #if [ -z "$(kpartx -l $raw_imgfile | grep 'loop deleted')" ]; then
+ # kpartx -dv $raw_imgfile
+ #fi
+ kpartx -dv $raw_imgfile || true
fi
rm -f $raw_imgfile