summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-08-21 22:35:57 (GMT)
committerJoey Hess <joey@kitenet.net>2011-08-21 22:36:36 (GMT)
commit6744d37bf982b5dedf94082701bb778a4ae80d79 (patch)
tree756a5357aeb8e157a81fa067e914903f41828095 /functions
parent804a6a4349944f2fa8ad146d8e7794ae19c09d58 (diff)
downloaddebootstrap-6744d37bf982b5dedf94082701bb778a4ae80d79.zip
debootstrap-6744d37bf982b5dedf94082701bb778a4ae80d79.tar.gz
debootstrap-6744d37bf982b5dedf94082701bb778a4ae80d79.tar.bz2
Workaround for umount bug #634107, which broke pbuilder and "debootstrap ."
umount /path/to/foo fails when run in in /path/to/. Work around this nasty bug with a chdir /. Note that TARGET is an absolute path, so chdiring away is safe.
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index aaeb7c5..44a071d 100644
--- a/functions
+++ b/functions
@@ -943,7 +943,7 @@ UMOUNT_DIRS=
umount_exit_function () {
for dir in $UMOUNT_DIRS; do
- umount "$TARGET/${dir#/}" || true
+ ( cd / ; umount "$TARGET/${dir#/}" ) || true
done
}