]> piware.de Git - bin.git/blob - debdev
add debdev: set up Debian/Ubuntu development schroot
[bin.git] / debdev
1 #!/bin/sh
2 set -e
3 schroot="$1"
4
5 if [ -z "$schroot" ]; then
6     echo "Usage: $0 <schroot>" >&2
7     exit 1
8 fi
9
10 SESSID="schroot-debdev-$schroot"
11 if ! schroot -la | grep -q "session:$SESSID"; then
12     schroot -b -c "$schroot" -n "$SESSID"
13     echo 'LANG=C.UTF-8' | schroot -r -c session:$SESSID -u root -- tee -a /etc/default/locale
14     schroot -r -c session:$SESSID -u root -- apt-get install --no-install-recommends -o Dpkg::Options::="--force-confnew" -y git-buildpackage libwww-perl less vim lintian debhelper manpages-dev git dput pristine-tar bash-completion libnss-myhostname lptools python-keyrings.alt wget gnupg2 ubuntu-dev-tools
15     #sudo mount -o bind /etc/schroot/ $(schroot --location -c session:$SESSID)/etc/schroot/
16     #sudo mount -o bind /srv/ $(schroot --location -c session:$SESSID)/srv
17     #schroot -r -c session:$SESSID -u root -- mount -o remount,suid,dev /
18     #schroot -r -c session:$SESSID -u root -- mount -o remount,suid,dev /tmp
19 fi
20 schroot -r -c session:$SESSID