From eb40df7f71e3f8c5004898b949797c162344ab68 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sat, 6 Dec 2014 13:30:33 +0100 Subject: [PATCH] add schrootbd --- schrootbd | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 schrootbd 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 -- 2.39.5