[pbuilder] 02/02: modules: take care of saving the mount point instead of the device name when bind-mounting
Mattia Rizzolo
mattia at debian.org
Mon May 16 00:33:58 UTC 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository pbuilder.
commit 772dd1f9e3e13b6b640eb58c3c855a1ce867384f
Author: Mattia Rizzolo <mattia at debian.org>
Date: Mon May 16 00:28:11 2016 +0000
modules: take care of saving the mount point instead of the device name when bind-mounting
This avoids umounting of unrelated mount points in case of errors
LP: #1156636
---
pbuilder-modules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pbuilder-modules b/pbuilder-modules
index e7f5063..e53686b 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -334,7 +334,7 @@ function mountproc () {
if mkdir -p "$BUILDPLACE/$mnt" &&
mount $MOUNTPARAMS "$mnt" "$BUILDPLACE/$mnt"; then
# successful.
- mounted[${#mounted[@]}]="$mnt"
+ mounted[${#mounted[@]}]="$BUILDPLACE/$mnt"
else
# this part of code is the only part which is supposed to fail.
# When unsuccessful, backtrack / umount and abort.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pbuilder/pbuilder.git
More information about the Pbuilder-maint
mailing list