V8.00.000.2025.06.17
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -23,6 +23,7 @@ guard_sourcing
|
||||
# 0: Successfully executed commands.
|
||||
#######################################
|
||||
setup_timezone() {
|
||||
# shellcheck disable=SC2154 # "${ntp_timezone}"
|
||||
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}" dpkg-reconfigure -f noninteractive tzdata
|
||||
|
||||
@@ -40,10 +40,12 @@ setup_locales() {
|
||||
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)
|
||||
# shellcheck disable=SC2154 # "${locale_keyboard_layout}"
|
||||
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'."
|
||||
|
||||
# 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_log "info" "true" "Command: 'localectl set-x11-keymap ${locale_keyboard_xkb_keymap}' executed in: '${TARGET}'."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user