V8.00.000.2025.06.17

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-07-09 08:49:43 +02:00
parent 514e9d550b
commit 74122f7b16
2 changed files with 3 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ guard_sourcing
# 0: Successfully executed commands. # 0: Successfully executed commands.
####################################### #######################################
setup_timezone() { setup_timezone() {
# shellcheck disable=SC2154 # "${ntp_timezone}"
do_in_target "${TARGET}" ln -sf "/usr/share/zoneinfo/${ntp_timezone}" /etc/localtime do_in_target "${TARGET}" ln -sf "/usr/share/zoneinfo/${ntp_timezone}" /etc/localtime
do_in_target "${TARGET}" /bin/bash -c "echo ${ntp_timezone} | tee /etc/timezone" do_in_target "${TARGET}" /bin/bash -c "echo ${ntp_timezone} | tee /etc/timezone"
do_in_target "${TARGET}" dpkg-reconfigure -f noninteractive tzdata do_in_target "${TARGET}" dpkg-reconfigure -f noninteractive tzdata

View File

@@ -40,10 +40,12 @@ setup_locales() {
do_log "info" "true" "Command: 'update-locale LANG=${locale_locale} LC_ALL=${locale_locale}' executed in: '${TARGET}'." do_log "info" "true" "Command: 'update-locale LANG=${locale_locale} LC_ALL=${locale_locale}' executed in: '${TARGET}'."
# Set the keyboard layout for the system (for consoles) # Set the keyboard layout for the system (for consoles)
# shellcheck disable=SC2154 # "${locale_keyboard_layout}"
sed -i "s/^KEYMAP=.*/KEYMAP=${locale_keyboard_layout}/" "${TARGET}"/etc/default/keyboard sed -i "s/^KEYMAP=.*/KEYMAP=${locale_keyboard_layout}/" "${TARGET}"/etc/default/keyboard
do_log "info" "false" "Keyboard layout updated: 'KEYMAP=${locale_keyboard_layout}' -> '${TARGET}/etc/default/keyboard'." do_log "info" "false" "Keyboard layout updated: 'KEYMAP=${locale_keyboard_layout}' -> '${TARGET}/etc/default/keyboard'."
# Set the X11 keyboard layout (for graphical environments) # Set the X11 keyboard layout (for graphical environments)
# shellcheck disable=SC2154 # "${locale_keyboard_xkb_keymap}"
do_in_target "${TARGET}" localectl set-x11-keymap "${locale_keyboard_xkb_keymap}" do_in_target "${TARGET}" localectl set-x11-keymap "${locale_keyboard_xkb_keymap}"
do_log "info" "true" "Command: 'localectl set-x11-keymap ${locale_keyboard_xkb_keymap}' executed in: '${TARGET}'." do_log "info" "true" "Command: 'localectl set-x11-keymap ${locale_keyboard_xkb_keymap}' executed in: '${TARGET}'."