From d5d775e9b4055c5061d6c3e21f00f45096224f80 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Thu, 9 May 2013 08:32:36 +1200 Subject: [PATCH] Tweak the moved cleanup_dirs to match the original. Change-Id: I5cb240aa82a5d9ccea539927d355a1f07e728381 --- lib/common-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common-functions b/lib/common-functions index 0343a0c1..ead477a3 100644 --- a/lib/common-functions +++ b/lib/common-functions @@ -145,7 +145,7 @@ function mount_qcow_image() { function cleanup_dirs () { sudo rm -rf $TMP_BUILD_DIR/built sudo rm -rf $TMP_BUILD_DIR/mnt - sudo umount $TMP_BUILD_DIR + sudo umount -f $TMP_BUILD_DIR || true rm -rf $TMP_BUILD_DIR }