[PATCH] Robustify the 'is anything mounted' check

Matt Palmer mpalmer at hezmatt.org
Fri Dec 17 07:43:38 UTC 2010


---
 pbuilder-modules |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pbuilder-modules b/pbuilder-modules
index 16e0714..886ae93 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -317,7 +317,7 @@ function cleanbuildplace () {
             # The readlink -f is a simple way to canonicalize the path for
             # $BUILDPLACE (no dirty double slashes for *us*), so it matches
             # what will be in the output of mount.
-            if mount |grep -q $(readlink -f $BUILDPLACE)/; then
+            if mount |grep -q -F " $(readlink -f $BUILDPLACE)/"; then
                 log "E: Something is still mounted under ${BUILDPLACE}; unmount and remove ${BUILDPLACE} manually"
             else
                 log "I: cleaning the build env "
-- 
1.5.6.5






More information about the Pbuilder-maint mailing list