--- /dev/null
+#!/bin/sh
+set -e
+schroot="$1"
+pkg="$2"
+
+if [ -z "$pkg" ]; then
+ echo "Usage: $0 <schroot> <srcpkg>" >&2
+ exit 1
+fi
+
+SESSID=$(schroot -b -c "$schroot" -n "schroot-$schroot-$pkg")
+schroot -r -c session:$SESSID -u root -- apt-get -y build-dep "$pkg"
+echo "You will now be put into the schroot. It will NOT be cleaned up when you exit this shell!"
+schroot -r -c session:$SESSID