Merge "Set default locale to image in debootstrap element"
This commit is contained in:
commit
caf0c404cc
@ -30,6 +30,10 @@ filesystem. By default this is 0 (disabled) and any other value enables this.
|
||||
If run in offline mode then the most recently cached rootfs is used instead of
|
||||
being built.
|
||||
|
||||
The `DIB_DEBOOTSTRAP_DEFAULT_LOCALE` environment variable may be used
|
||||
to configure the default locale of the base image. It defaults to
|
||||
C.UTF-8.
|
||||
|
||||
-------------------
|
||||
Note on ARM systems
|
||||
-------------------
|
||||
|
@ -0,0 +1 @@
|
||||
export DIB_DEBOOTSTRAP_DEFAULT_LOCALE=${DIB_DEBOOTSTRAP_DEFAULT_LOCALE:-C.UTF-8}
|
@ -30,3 +30,9 @@ locales locales/default_environment_locale select en_US.UTF-8
|
||||
EOF
|
||||
|
||||
dpkg-reconfigure -f noninteractive locales
|
||||
|
||||
# set on configuration
|
||||
cat > /etc/default/locale <<EOF
|
||||
LANG=$DIB_DEBOOTSTRAP_DEFAULT_LOCALE
|
||||
LC_ALL=$DIB_DEBOOTSTRAP_DEFAULT_LOCALE
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user