3 # This script sets up a schroot suitable for building e2fsprogs
4 # on a Debian portable box
16 echo "Usage: setup-schroot [--base <base_chroot>] [--chroot <chroot>]"
20 echo "unknown option: $1"
27 if test -z "$BASE_CHROOT" ; then
31 if test -z "$CHROOT" ; then
32 CHROOT
="$USER-$BASE_CHROOT"
35 echo "Setting up $CHROOT using $BASE_CHROOT..."
36 schroot
-b -n "$CHROOT" -c "$BASE_CHROOT"
37 dd-schroot-cmd
-c "$CHROOT" apt-get update
38 dd-schroot-cmd
-c "$CHROOT" -y apt-get upgrade
39 dd-schroot-cmd
-c "$CHROOT" -y apt-get build-dep e2fsprogs
40 dd-schroot-cmd
-c "$CHROOT" -y apt-get
install git gdb emacs-nox lintian \
41 acl libreadline-dev dh-exec cron
42 dd-schroot-cmd
-c "$CHROOT" -y apt-get
install udev systemd
44 echo "Start chroot by running: "
45 echo "schroot -r -c $CHROOT"