mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 20:20:06 +09:00
fix issue where placeholder fr_FR.UTF-8 wasn't replaced with DEBLANGUAGE
This commit is contained in:
parent
fa44ce461e
commit
84ae83fd7a
@ -623,15 +623,14 @@ do_apply_os_config() {
|
||||
|
||||
if [ -n "$DEBLANGUAGE" ]; then
|
||||
printf "Setting language to %s based on os_config.json from NOOBS. May take a while\n" "$DEBLANGUAGE"
|
||||
# TODO: map noobs language to Debian spec
|
||||
cat << EOF | debconf-set-selections
|
||||
locales locales/locales_to_be_generated multiselect fr_FR.UTF-8 UTF-8
|
||||
locales locales/locales_to_be_generated multiselect $DEBLANGUAGE UTF-8
|
||||
EOF
|
||||
rm /etc/locale.gen
|
||||
dpkg-reconfigure -f noninteractive locales
|
||||
update-locale LANG=fr_FR.UTF-8
|
||||
update-locale LANG="$DEBLANGUAGE"
|
||||
cat << EOF | debconf-set-selections
|
||||
locales locales/default_environment_locale select fr_FR.UTF-8
|
||||
locales locales/default_environment_locale select $DEBLANGUAGE
|
||||
EOF
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user