From 12ab125261c77842385cf4a8e2f17014ca1fbf65 Mon Sep 17 00:00:00 2001 From: josch Date: Mon, 23 Jun 2014 12:46:41 +0200 Subject: [PATCH] add some extra second --- findunusedbd.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/findunusedbd.sh b/findunusedbd.sh index 1dfb3cc..744b610 100755 --- a/findunusedbd.sh +++ b/findunusedbd.sh @@ -78,7 +78,12 @@ elif [ "$#" -eq 2 ]; then # signal that the build is done echo > "${tmpdir}/myfifo" # wait for the parent process to finish and exit + # if we do not do this then schroot cannot umount + # because our script will still have the directory as + # its working dir cat "${tmpdir}/myfifo" > /dev/null + # give it some time to really exit (value is arbitrary) + sleep 1 ;; equivs) namever="$2"