aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-createbuildenv
diff options
context:
space:
mode:
authordancer <dancer>2001-08-27 11:01:56 +0000
committerdancer <dancer>2001-08-27 11:01:56 +0000
commit296a5a338a397c6cf8c77a813dc29bd1b7ce8b19 (patch)
tree100834164db20291514c5e5843f8aaff6928506f /pbuilder-createbuildenv
parente062d3ce43ca80e40030cf2bac5bc15b581a3a8b (diff)
downloadpbuilder-296a5a338a397c6cf8c77a813dc29bd1b7ce8b19.tar
pbuilder-296a5a338a397c6cf8c77a813dc29bd1b7ce8b19.tar.gz
created pbuilder-modules and made others use it for common routines, and made PROC support optional for some people without PROC interface
Diffstat (limited to 'pbuilder-createbuildenv')
-rwxr-xr-xpbuilder-createbuildenv16
1 files changed, 5 insertions, 11 deletions
diff --git a/pbuilder-createbuildenv b/pbuilder-createbuildenv
index 87990be..cb512f5 100755
--- a/pbuilder-createbuildenv
+++ b/pbuilder-createbuildenv
@@ -1,9 +1,8 @@
#! /bin/bash
#necessary for installs.
-export LANG=C
-export LC_ALL=C
. /usr/lib/pbuilder/pbuilder-checkparams
+. /usr/lib/pbuilder/pbuilder-modules
CHROOTEXEC="chroot $BUILDPLACE "
if [ -z "$DISTRIBUTION" ]; then
@@ -16,12 +15,9 @@ rm -rf $BUILDPLACE
echo "building the build env"
mkdir -p $BUILDPLACE
-echo " -> mounting proc"
-mkdir -p $BUILDPLACE/proc
-mount -t proc /proc $BUILDPLACE/proc
+mountproc
echo " -> running debootstrap"
-cd $BUILDPLACE
-debootstrap $DISTRIBUTION .
+(cd $BUILDPLACE; debootstrap $DISTRIBUTION .)
mkdir -p $BUILDPLACE/tmp/buildd
echo " -> copying local configuration"
for a in passwd hosts hostname resolv.conf apt; do
@@ -41,8 +37,6 @@ $CHROOTEXEC /usr/bin/dpkg --purge lilo
$CHROOTEXEC /usr/bin/apt-get -y dist-upgrade
$CHROOTEXEC /usr/bin/apt-get -y install build-essential dpkg-dev apt $EXTRAPACKAGES
$CHROOTEXEC /usr/bin/apt-get clean
-echo " -> unmounting proc"
-umount $BUILDPLACE/proc
+umountproc
echo " -> creating base.tgz"
-cd $BUILDPLACE
-tar cfz $BASETGZ *
+( cd $BUILDPLACE ; tar cfz $BASETGZ * )