diff options
author | Holger Levsen <holger@layer-acht.org> | 2012-12-26 02:00:42 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2012-12-26 02:00:42 +0100 |
commit | 4df1acb7babeeefaa56c2d00aa5853eba4b7fd83 (patch) | |
tree | e23aeeb14eb98c8fef5f206eee55e635fd6563db /bin | |
parent | 1b4ae866ffb3192e781e7e82a27f8a9ba03d0de7 (diff) | |
download | jenkins.debian.net-4df1acb7babeeefaa56c2d00aa5853eba4b7fd83.tar.xz |
start adding support for other languages than english. currently a no-op
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/g-i-installation.sh | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index bd0b452b..dcf66503 100755 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -25,6 +25,7 @@ set -e export LC_ALL=C export MIRROR=http://ftp.de.debian.org/debian export http_proxy="http://localhost:3128" +export # # init @@ -33,6 +34,7 @@ DISPLAY=localhost:$1 NAME=$2 # it should be possible to derive $NAME from $JOB_NAME DISKSIZE_IN_GB=$3 URL=$4 +# $5 and $6 are used below for language setting RAMSIZE=1024 if [ "$(basename $URL)" != "amd64" ] ; then IMAGE=$(pwd)/$(basename $URL) @@ -50,6 +52,17 @@ mkdir -p results WORKSPACE=$(pwd) RESULTS=$WORKSPACE/results +# +# language +# +if [ -z "$5" ] || [ -z "$6" ] ; then + DI_LANG="en" + DI_LOCALE="en_US" +else + DI_LANG=$5 + DI_LOCALE=$6 +fi + fetch_if_newer() { url="$2" file="$1" @@ -122,8 +135,8 @@ bootstrap_system() { # preseeding related variables PRESEED_PATH=d-i-preseed-cfgs PRESEED_URL="url=$QEMU_WEBSERVER/$PRESEED_PATH/${NAME}_preseed.cfg" - INST_LOCALE="locale=en_US" - INST_KEYMAP="keymap=us" + INST_LOCALE="locale=$DI_LOCALE" + INST_KEYMAP="keymap=us" # always us! INST_VIDEO="video=vesa:ywrap,mtrr vga=788" EXTRA_APPEND="" case $NAME in |