Create the Build Chroot
The process for both distributions is basically the same. We started on Ubuntu Breezy, but then moved to Debian Sarge.
Debian
apt-get install debootstrap dchroot sudo
mkdir /chroot/sarge
debootstrap --variant=buildd sarge /chroot/sarge http://mirrors.kernel.org/debian/
cp /etc/apt/sources.list /chroot/sarge/etc/apt/
vi /etc/fstab
proc-chroot /var/chroot/proc proc defaults 0 0
devpts-chroot /var/chroot/dev/pts devpts defaults 0 0
vi /etc/dchroot.conf
sarge /chroot/sarge
cp /etc/ passwd /chroot/sarge/etc
sed 's/\([^:]*\):[^:]*:/\1:*:/' /etc/shadow | tee /chroot/sarge/etc/shadow
cp /etc/group /chroot/sarge/etc/
cp /etc/hosts /chroot/sarge/etc/
cp /etc/sudoers /chroot/sarge/etc/
chroot /chroot/sarge/
apt-get update
apt-get install wget debconf devscripts gnupg nano subversion sudoUbuntu
The DebootstrapChroot page on the Ubuntu Wiki has excellent instructions on how to build a build chroot for Ubuntu (Breezy, Dapper and below). We do not intend to duplicate the complete and current documentation, so please refer to the Ubuntu Wiki.mike – Mon, 2005 – 12 – 19 01:12











