aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-modules
diff options
context:
space:
mode:
authordancer <dancer>2007-01-04 06:22:19 +0000
committerdancer <dancer>2007-01-04 06:22:19 +0000
commitbf1da042328a6cc067e9f0dab6fae14626af65ab (patch)
tree8ed22a02169b2f4a4ce2ea132a57428c66b003e5 /pbuilder-modules
parent41656dfffdfb4149df43e9091f88895dbcf68669 (diff)
downloadpbuilder-bf1da042328a6cc067e9f0dab6fae14626af65ab.tar
pbuilder-bf1da042328a6cc067e9f0dab6fae14626af65ab.tar.gz
* --override-config and --mirror without --distribution leaves /proc
mounted, and breaks cowbuilder. (closes: #405497)
Diffstat (limited to 'pbuilder-modules')
-rw-r--r--pbuilder-modules11
1 files changed, 7 insertions, 4 deletions
diff --git a/pbuilder-modules b/pbuilder-modules
index 654d8c1..309bf8e 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -338,7 +338,8 @@ function copy_local_configuration () {
function extractbuildplace () {
# after calling this function, umountproc, and cleanbuildplace
- # needs to be called. Please trap it.
+ # needs to be called. Please trap it after calling this function.
+
if [ "${INTERNAL_BUILD_UML}" != "yes" -a ! \( "${PRESERVE_BUILDPLACE}" = "yes" -a -d "$BUILDPLACE" \) ]; then
cleanbuildplace
echo "Building the build Environment"
@@ -359,12 +360,14 @@ function extractbuildplace () {
hostname -f > "$BUILDPLACE/etc/mailname"
fi
copy_local_configuration
- mountproc
- mkdir -p "$BUILDPLACE/tmp/buildd"
-
+
+ # installaptlines may fail with exit 1, do it earlier than mountproc.
if [ "$OVERRIDE_APTLINES" = "yes" ]; then
installaptlines
fi
+
+ mountproc
+ mkdir -p "$BUILDPLACE/tmp/buildd"
}