X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=schrootbd;fp=schrootbd;h=2e0d4002285870497f7bf31d9d7c4ac6512bd3a6;hp=0000000000000000000000000000000000000000;hb=eb40df7f71e3f8c5004898b949797c162344ab68;hpb=315c16995704429a683770df6944e892fcb13079 diff --git a/schrootbd b/schrootbd new file mode 100755 index 0000000..2e0d400 --- /dev/null +++ b/schrootbd @@ -0,0 +1,14 @@ +#!/bin/sh +set -e +schroot="$1" +pkg="$2" + +if [ -z "$pkg" ]; then + echo "Usage: $0 " >&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