From 66c96fd4a905aae93e85f19842fb8ddea5465c74 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 8 May 2013 11:24:13 +0200 Subject: [PATCH] Allow supplying a different schroot personality --- modules/porterbox/files/setup-dchroot | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/porterbox/files/setup-dchroot b/modules/porterbox/files/setup-dchroot index 6fa9e66c..0ab99d16 100755 --- a/modules/porterbox/files/setup-dchroot +++ b/modules/porterbox/files/setup-dchroot @@ -42,6 +42,7 @@ OPTIONS: -c write config only -f overwrite config and target tarball -k KEYRING use an alternate keyring [$keyring] + -p PERS use a different sbuild personality [$personality] -s use sbuild compatible naming scheme -h this help EOF @@ -89,9 +90,9 @@ source-root-groups=adm EOF if dpkg --compare-versions "$(lsb_release --release --short)" '<' 7; then - echo "script-config=dsa/config" + echo "script-config=$personality/config" else - echo "profile=dsa" + echo "profile=$personality" fi if [ "$THISARCH" = "$arch" ]; then @@ -131,11 +132,12 @@ configonly="" force="" basedir="/srv/chroot" keyring=/usr/share/keyrings/debian-archive-keyring.gpg +personality="dsa" sbuildnames="" declare -a cleanup trap do_cleanup EXIT -while getopts "a:b:cfhk:m:s" OPTION +while getopts "a:b:cfhk:m:p:s" OPTION do case $OPTION in a) @@ -160,6 +162,9 @@ do m) mirror="$OPTARG" ;; + p) + personality="$OPTARG" + ;; s) sbuildnames="1" ;; -- 2.39.2