From b1c52bbeb2a2cf36e0d6a2c72f805acaca552be5 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 2 Dec 2012 19:45:05 +0100 Subject: fix unmounting, or rather work around.. --- bin/cd_tester.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/cd_tester.sh b/bin/cd_tester.sh index f57189e6..d950f747 100755 --- a/bin/cd_tester.sh +++ b/bin/cd_tester.sh @@ -142,6 +142,8 @@ if [ ! -z $IMAGE ] ; then curl $URL > $IMAGE fi sudo mkdir -p $IMAGE_MNT + mount | grep -v grep | grep $IMAGE_MNT && sudo umount -l $IMAGE_MNT + sleep 1 sudo mount -o loop,ro $IMAGE $IMAGE_MNT else # -- cgit v1.2.3-70-g09d2