From bf1da042328a6cc067e9f0dab6fae14626af65ab Mon Sep 17 00:00:00 2001 From: dancer Date: Thu, 4 Jan 2007 06:22:19 +0000 Subject: * --override-config and --mirror without --distribution leaves /proc mounted, and breaks cowbuilder. (closes: #405497) --- pbuilder-modules | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'pbuilder-modules') 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" } -- cgit v1.2.3