mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-24 17:31:09 +00:00
Give --personality a better default.
This commit is contained in:
parent
e2635051ff
commit
2e08014414
@ -87,7 +87,7 @@ function usage()
|
|||||||
echo "Options:"
|
echo "Options:"
|
||||||
echo " --arch=ARCH What architecture to select"
|
echo " --arch=ARCH What architecture to select"
|
||||||
echo " --name=NAME Base name for the schroot (arch is appended)"
|
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 " --debug Turn on script debugging"
|
||||||
echo " --source-template=FILE Use FILE as the sources.list template"
|
echo " --source-template=FILE Use FILE as the sources.list template"
|
||||||
echo " --debootstrap-mirror=URL Use URL as the debootstrap source"
|
echo " --debootstrap-mirror=URL Use URL as the debootstrap source"
|
||||||
@ -112,6 +112,10 @@ while :; do
|
|||||||
# By default, use the native architecture.
|
# By default, use the native architecture.
|
||||||
arch_opt="--arch $2"
|
arch_opt="--arch $2"
|
||||||
arch_suffix="-$2"
|
arch_suffix="-$2"
|
||||||
|
if [ -z "$personality" -a "$2" = "i386" ]
|
||||||
|
then
|
||||||
|
personality="linux32"
|
||||||
|
fi
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
--personality)
|
--personality)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user