diff options
Diffstat (limited to 'pbuilder-modules')
-rw-r--r-- | pbuilder-modules | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pbuilder-modules b/pbuilder-modules index 9b9cca0..36180ba 100644 --- a/pbuilder-modules +++ b/pbuilder-modules @@ -135,11 +135,13 @@ function seems_truly_unmounted() { log "W: $mountpoint isn't a directory" return 1 fi - if [ -r "$BUILDPLACE/proc/mounts" ] && grep -q "^[^ ]* $mountpoint " "$BUILDPLACE/proc/mounts"; then + if [ -r "$BUILDPLACE/proc/mounts" ] && \ + grep -q "^[^ ]* $mountpoint " "$BUILDPLACE/proc/mounts"; then log "W: $mountpoint is mounted according to build place's /proc/mounts" return 1 fi - if [ -r "/proc/mounts" ] && grep -q "^[^ ]* $BUILDPLACE/$mountpoint " "/proc/mounts"; then + if [ -r "/proc/mounts" ] && \ + grep -q "^[^ ]* $BUILDPLACE/$mountpoint " "/proc/mounts"; then log "W: $mountpoint is mounted according to system's /proc/mounts" return 1 fi |