[Buildd-tools-devel] Bug#391319: Acknowledgement (schroot: leftover processes cause umount to fail)

Kees Cook kees at outflux.net
Fri Oct 6 01:38:35 UTC 2006


Whoops, forgot the quotes around the mount location.  New patch 
attached.

-- 
Kees Cook                                            @outflux.net
-------------- next part --------------
Index: schroot/setup/10mount
===================================================================
--- schroot/setup/10mount	(revision 1032)
+++ schroot/setup/10mount	(working copy)
@@ -32,7 +32,15 @@
 	if [ "$AUTH_VERBOSITY" = "verbose" ]; then
 	    echo "Unmounting $mountloc"
 	fi
-	umount "$mountloc" || exit 1
+	if ! umount "$mountloc" 2>/dev/null; then
+	    FUSER_OPTS="-mk"
+	    if [ "$AUTH_VERBOSITY" = "verbose" ]; then
+	        echo "Killing processes on $mountloc"
+		FUSER_OPTS="$FUSER_OPTS -v"
+	    fi
+	    fuser $FUSER_OPTS "$mountloc"
+	    umount "$mountloc" || exit 1
+	fi
     done || exit 1
 }
 


More information about the Buildd-tools-devel mailing list