5 if [ -z "$schroot" ]; then
6 echo "Usage: $0 <schroot> [command]" >&2
10 SESSID="schroot-debdev-$schroot"
11 if ! schroot -la | grep -q "session:$SESSID"; then
12 schroot -b -c "$schroot" -n "$SESSID"
13 # work around for system groups
14 schroot -r -c session:$SESSID -u root -- addgroup --system staff || true
15 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 python-keyrings.alt wget gnupg2 ubuntu-dev-tools python3-debian qemu-kvm qemu-utils
16 schroot -r -c session:$SESSID -u root -- apt-get install -y locales-all || true
17 #sudo mount -o bind /etc/schroot/ $(schroot --location -c session:$SESSID)/etc/schroot/
20 schroot -r -c session:$SESSID "$@"