From 4b2ee427ccad5c1524a124ebe86158aa31b4d14d Mon Sep 17 00:00:00 2001 From: Jamie Strandboge Date: Thu, 6 Mar 2008 11:34:43 -0500 Subject: [PATCH] added --personality to mk-sbuild-lvm and bump version number --- mk-sbuild-lv | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mk-sbuild-lv b/mk-sbuild-lv index 51b1829..3ae3f79 100755 --- a/mk-sbuild-lv +++ b/mk-sbuild-lv @@ -20,7 +20,7 @@ # detect the chroot architecture: # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=392992 # -# Version: 0.11 +# Version: 0.12 set -e @@ -87,6 +87,7 @@ function usage() echo "Options:" echo " --arch=ARCH What architecture to select" echo " --name=NAME Base name for the schroot (arch is appended)" + echo " --personality=PERSONALITY What personality to use" echo " --debug Turn on script debugging" echo " --source-template=FILE Use FILE as the sources.list template" echo " --debootstrap-mirror=URL Use URL as the debootstrap source" @@ -97,7 +98,7 @@ function usage() if [ -z "$1" ]; then usage fi -OPTS=`getopt -o '' --long "help,debug,arch:,name:,source-template:,debootstrap-mirror:" -- "$@"` +OPTS=`getopt -o '' --long "help,debug,arch:,name:,source-template:,debootstrap-mirror:,personality:" -- "$@"` eval set -- "$OPTS" name="" @@ -113,6 +114,10 @@ while :; do arch_suffix="-$2" shift 2 ;; + --personality) + personality="$2" + shift 2 + ;; --name) name="$2" shift 2 @@ -223,6 +228,9 @@ run-setup-scripts=true run-exec-scripts=true EOM fi +if [ ! -z "$personality" ]; then + echo "personality=$personality" >> "$TEMP_SCHROOTCONF" +fi cat "$TEMP_SCHROOTCONF" | sed \ -e "s|CHROOT_NAME|$CHROOT_NAME|g" \ -e "s|CHROOT_PATH|$CHROOT_PATH|g" \