aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-updatebuildenv
diff options
context:
space:
mode:
authordancer <dancer>2001-08-25 19:28:11 +0000
committerdancer <dancer>2001-08-25 19:28:11 +0000
commit065b933f10abb6a1b58015b0fa2e3a8f81d02eb1 (patch)
treefec8d06c1475ea5298e815b6468625959ab5254a /pbuilder-updatebuildenv
parent82cd5866919d77818b1518810d8dbb10efa8933f (diff)
downloadpbuilder-065b933f10abb6a1b58015b0fa2e3a8f81d02eb1.tar
pbuilder-065b933f10abb6a1b58015b0fa2e3a8f81d02eb1.tar.gz
adding support for proc and using readlink
Diffstat (limited to 'pbuilder-updatebuildenv')
-rwxr-xr-xpbuilder-updatebuildenv23
1 files changed, 13 insertions, 10 deletions
diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv
index 54f9a4c..510f34c 100755
--- a/pbuilder-updatebuildenv
+++ b/pbuilder-updatebuildenv
@@ -1,4 +1,4 @@
-#!/bin/bash
+#! /bin/bash
export LANG=C
export LC_ALL=C
@@ -8,19 +8,19 @@ CHROOTEXEC="chroot $BUILDPLACE "
test -n "$DISTRIBUTION" && echo "Upgrading for distribution $DISTRIBUTION"
-#cd $MYREPOSITORY
-#echo Initializing repository
-#dpkg-scanpackages . . | gzip > Packages.gz
-#dpkg-scansources . . | gzip > Sources.gz
-
-echo cleaning the build env
+echo "cleaning the build env"
rm -rf $BUILDPLACE
-echo building the build env
+echo "building the build env"
+echo " -> extracting base.tgz"
mkdir -p $BUILDPLACE
cd $BUILDPLACE
tar xfzp $BASETGZ
+echo " -> mounting proc"
+mkdir -p "$BUILDPLACE/proc"
+mount -t proc /proc $BUILDPLACE/proc
mkdir -p $BUILDPLACE/tmp/buildd
+echo " -> copying local configuration"
for a in passwd hosts hostname resolv.conf; do
cp /etc/$a $BUILDPLACE/etc/$a;
done
@@ -33,13 +33,16 @@ deb-src $MIRRORSITE debian $DISTRIBUTION main contrib non-free
EOF
fi
-echo Refreshing the base.tgz
+echo "Refreshing the base.tgz "
+echo " -> upgrading packages"
$CHROOTEXEC /usr/bin/apt-get update
$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
+echo " -> creating base.tgz"
cd $BUILDPLACE
-echo Creating base.tgz
tar cfz $BASETGZ *