V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 53s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-07-31 09:53:08 +02:00
parent 3ee5e2905d
commit c6d1e87b10

View File

@@ -28,6 +28,7 @@ guard_sourcing
#######################################
setup_locales() {
do_in_target "${TARGET}" apt-get install -y locales
mkdir -p "${TARGET}/etc/default"
### Give priority to '${locale_locale}' over separately configured variables '{$locale_country}' and '{$locale_language}'.
### If 'locale_locale' is not set, build it from 'locale_language' and 'locale_country'.
@@ -35,12 +36,14 @@ setup_locales() {
declare locale_locale="${locale_language}_${locale_country}.UTF-8"
fi
[[ -n "${locale_locale:-}" ]] || do_log "error" "file_only" "4110() Variable '${locale_locale}' is not set."
### Generate the specified locale
do_in_target "${TARGET}" locale-gen "${locale_locale}"
### Set the standard locale.
#do_in_target "${TARGET}" update-locale LANG="${locale_locale}" LC_ALL="${locale_locale}"
echo -e "LANG=${locale_locale}\nLC_ALL=${locale_locale}" > "${TARGET}/etc/default/locale"
echo -e "LANG=${locale_locale}\nLC_ALL=${locale_locale}" >| "${TARGET}/etc/default/locale"
do_in_target "${TARGET}" locale-gen "${locale_locale}"
### Set the keyboard layout for the system (for consoles).