From 2e08014414ca5326807f76041dd61ef3c24b7353 Mon Sep 17 00:00:00 2001 From: Soren Hansen Date: Fri, 7 Mar 2008 22:51:11 +0100 Subject: [PATCH] Give --personality a better default. --- mk-sbuild-lv | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mk-sbuild-lv b/mk-sbuild-lv index 3ae3f79..e3104c1 100755 --- a/mk-sbuild-lv +++ b/mk-sbuild-lv @@ -87,7 +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 " --personality=PERSONALITY What personality to use (defaults match --arch)" 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" @@ -112,6 +112,10 @@ while :; do # By default, use the native architecture. arch_opt="--arch $2" arch_suffix="-$2" + if [ -z "$personality" -a "$2" = "i386" ] + then + personality="linux32" + fi shift 2 ;; --personality)