3
# Copyright 2009 Canonical Ltd. This software is licensed under the
4
# GNU Affero General Public License version 3 (see the file LICENSE).
6
# Buildd Slave tool to mount a chroot
8
# Expects build id as arg 1, makes build-id to contain the build
10
# Needs SUDO to be set to a sudo instance for passwordless access
19
echo "Mounting chroot for build $BUILDID"
21
$SUDO mount -t proc none "$HOME/build-$BUILDID/chroot-autobuild/proc"
22
$SUDO mount -t devpts none "$HOME/build-$BUILDID/chroot-autobuild/dev/pts"
23
$SUDO mount -t sysfs none "$HOME/build-$BUILDID/chroot-autobuild/sys"
24
$SUDO mount -t tmpfs none "$HOME/build-$BUILDID/chroot-autobuild/dev/shm"
25
$SUDO cp /etc/hosts /etc/hostname /etc/resolv.conf $HOME/build-$BUILDID/chroot-autobuild/etc/