From fc2c95cf8faf90b6e22bd1358753c85b1d790a7c Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 4 Apr 2017 09:49:25 +0200 Subject: [PATCH] add debdev: set up Debian/Ubuntu development schroot --- debdev | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 debdev diff --git a/debdev b/debdev new file mode 100755 index 0000000..3854c5c --- /dev/null +++ b/debdev @@ -0,0 +1,20 @@ +#!/bin/sh +set -e +schroot="$1" + +if [ -z "$schroot" ]; then + echo "Usage: $0 " >&2 + exit 1 +fi + +SESSID="schroot-debdev-$schroot" +if ! schroot -la | grep -q "session:$SESSID"; then + schroot -b -c "$schroot" -n "$SESSID" + echo 'LANG=C.UTF-8' | schroot -r -c session:$SESSID -u root -- tee -a /etc/default/locale + 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 + #sudo mount -o bind /etc/schroot/ $(schroot --location -c session:$SESSID)/etc/schroot/ + #sudo mount -o bind /srv/ $(schroot --location -c session:$SESSID)/srv + #schroot -r -c session:$SESSID -u root -- mount -o remount,suid,dev / + #schroot -r -c session:$SESSID -u root -- mount -o remount,suid,dev /tmp +fi +schroot -r -c session:$SESSID -- 2.39.5