X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=debdev;h=b1a36192319537acae26c469d22cc7ad79703938;hp=f5ec8ff5720ebddc6ddc25d6032e5d03e8f7660f;hb=d802c8aecc3efb8dbd1a9158a0cc77e61013c6c9;hpb=963e7a6b71d253d032ca18082bd4f8f202b597e2 diff --git a/debdev b/debdev index f5ec8ff..b1a3619 100755 --- a/debdev +++ b/debdev @@ -3,18 +3,18 @@ set -e schroot="$1" if [ -z "$schroot" ]; then - echo "Usage: $0 " >&2 + echo "Usage: $0 [command]" >&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 + # work around for system groups + schroot -r -c session:$SESSID -u root -- addgroup --system staff || true + 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 wget gnupg ubuntu-dev-tools python3-debian qemu-kvm qemu-utils + schroot -r -c session:$SESSID -u root -- apt-get install -y locales-all || true #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 +shift +schroot -r -c session:$SESSID "$@"