Lazy unmount guest filesystem after building image, as it still might be busy
authorMartin Willi <martin@revosec.ch>
Fri, 22 Mar 2013 10:27:37 +0000 (11:27 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 26 Mar 2013 09:31:29 +0000 (10:31 +0100)
testing/scripts/build-guestimages

index b93c868..f7fb1f8 100755 (executable)
@@ -65,7 +65,7 @@ do
                execute_chroot "update-rc.d bind9 defaults" 0
        fi
        sync
-       execute "umount $LOOPDIR" 0
+       execute "umount -l $LOOPDIR" 0
        execute "qemu-nbd -d $NBDEV" 0
        log_status 0
 done