Allow selection of which locales to generate

Defaults is en_GB.UTF-8 UTF-8 which is the backwards-compatible
behaviour.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
This commit is contained in:
Daniel F. Dickinson 2020-01-16 13:18:46 -05:00
parent f8f3d6fe93
commit 8d35dcaf39
3 changed files with 12 additions and 2 deletions

View File

@ -82,6 +82,13 @@ The following environment variables are supported:
Default system locale.
* `LOCALE_GEN_DEFAULT` (Default: "en_GB.UTF-8 UTF-8" )
List of locales to generate each separated by a comma and a space (in that
order). Note a locale is typically of the form
`<lang>_<COUNTRY>.<encoding> <encoding>` (e.g. `en_GB.UTF-8 UTF-8`).
See `stage0/01-locale/00-debconf` for a list of available locales.
* `HOSTNAME` (Default: "raspberrypi" )
Setting the hostname to the specified value.

View File

@ -172,6 +172,9 @@ export WPA_COUNTRY
export ENABLE_SSH="${ENABLE_SSH:-0}"
export LOCALE_DEFAULT="${LOCALE_DEFAULT:-en_GB.UTF-8}"
# LOCALE_GEN_DEFAULT is a list of locales to generate separated by comma and
# space)
export LOCALE_GEN_DEFAULT="${LOCALE_GEN_DEFAULT:-en_GB.UTF-8 UTF-8}"
export KEYBOARD_KEYMAP="${KEYBOARD_KEYMAP:-gb}"
export KEYBOARD_LAYOUT="${KEYBOARD_LAYOUT:-English (UK)}"

File diff suppressed because one or more lines are too long