aboutsummaryrefslogtreecommitdiffstats
path: root/testing/scripts/build-umlhostfs
diff options
context:
space:
mode:
Diffstat (limited to 'testing/scripts/build-umlhostfs')
-rwxr-xr-xtesting/scripts/build-umlhostfs5
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/scripts/build-umlhostfs b/testing/scripts/build-umlhostfs
index e5355988c..b4efc0ecb 100755
--- a/testing/scripts/build-umlhostfs
+++ b/testing/scripts/build-umlhostfs
@@ -36,6 +36,9 @@ else
HOSTS=$*
fi
+# just to be sure
+do_on_exit umount $LOOPDIR
+
for host in $HOSTS
do
log_action "Creating guest image for $host"
@@ -56,6 +59,6 @@ do
execute_chroot "chown -R openldap:openldap /var/lib/ldap" 0
fi
sync
- umount $LOOPDIR
log_status 0
+ umount $LOOPDIR
done