diff options
author | dancer <dancer> | 2001-08-25 19:28:11 +0000 |
---|---|---|
committer | dancer <dancer> | 2001-08-25 19:28:11 +0000 |
commit | 065b933f10abb6a1b58015b0fa2e3a8f81d02eb1 (patch) | |
tree | fec8d06c1475ea5298e815b6468625959ab5254a /pbuilder-createbuildenv | |
parent | 82cd5866919d77818b1518810d8dbb10efa8933f (diff) | |
download | pbuilder-065b933f10abb6a1b58015b0fa2e3a8f81d02eb1.tar pbuilder-065b933f10abb6a1b58015b0fa2e3a8f81d02eb1.tar.gz |
adding support for proc and using readlink
Diffstat (limited to 'pbuilder-createbuildenv')
-rwxr-xr-x | pbuilder-createbuildenv | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/pbuilder-createbuildenv b/pbuilder-createbuildenv index b6a01db..861e191 100755 --- a/pbuilder-createbuildenv +++ b/pbuilder-createbuildenv @@ -1,4 +1,4 @@ -#!/bin/bash +#! /bin/bash #necessary for installs. export LANG=C export LC_ALL=C @@ -14,27 +14,35 @@ echo Distribution is $DISTRIBUTION. echo cleaning the build env rm -rf $BUILDPLACE -echo building the build env +echo "building the build env" mkdir -p $BUILDPLACE +echo " -> mounting proc" +mkdir -p $BUILDPLACE/proc +mount -t proc /proc $BUILDPLACE/proc +echo " -> running debootstrap" cd $BUILDPLACE debootstrap $DISTRIBUTION . mkdir -p $BUILDPLACE/tmp/buildd +echo " -> copying local configuration" for a in passwd hosts hostname resolv.conf apt; do cp -r /etc/$a $BUILDPLACE/etc/; done -echo Installing apt-lines +echo "Installing apt-lines" cat > $BUILDPLACE/etc/apt/sources.list << EOF deb $MIRRORSITE $DISTRIBUTION main contrib non-free deb-src $MIRRORSITE $DISTRIBUTION main contrib non-free EOF -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 tar cfz $BASETGZ * - |