Actualiser debian12-fr.sh
This commit is contained in:
@@ -566,6 +566,7 @@ if [ "$CLOUD_INIT" == "yes" ]; then
|
|||||||
package_update: true
|
package_update: true
|
||||||
packages:
|
packages:
|
||||||
- locales
|
- locales
|
||||||
|
- kbd
|
||||||
- console-setup
|
- console-setup
|
||||||
- keyboard-configuration
|
- keyboard-configuration
|
||||||
|
|
||||||
@@ -593,15 +594,17 @@ runcmd:
|
|||||||
- locale-gen ${LOCALE} || true
|
- locale-gen ${LOCALE} || true
|
||||||
- update-locale LANG=${LOCALE} || true
|
- update-locale LANG=${LOCALE} || true
|
||||||
|
|
||||||
# keyboard (debconf + reconfigure)
|
# force console keymap to FR (needs kbd)
|
||||||
|
- loadkeys ${CONSOLE_KEYMAP} || true
|
||||||
|
|
||||||
|
# configure keyboard debian way (persists)
|
||||||
- echo 'keyboard-configuration keyboard-configuration/layoutcode string ${KB_LAYOUT}' | debconf-set-selections
|
- echo 'keyboard-configuration keyboard-configuration/layoutcode string ${KB_LAYOUT}' | debconf-set-selections
|
||||||
- echo 'keyboard-configuration keyboard-configuration/modelcode string pc105' | debconf-set-selections
|
- echo 'keyboard-configuration keyboard-configuration/modelcode string pc105' | debconf-set-selections
|
||||||
- DEBIAN_FRONTEND=noninteractive dpkg-reconfigure keyboard-configuration || true
|
- DEBIAN_FRONTEND=noninteractive dpkg-reconfigure keyboard-configuration || true
|
||||||
|
- DEBIAN_FRONTEND=noninteractive dpkg-reconfigure console-setup || true
|
||||||
# apply to console
|
|
||||||
- setupcon -k || true
|
- setupcon -k || true
|
||||||
|
|
||||||
# systemd-localed (if present)
|
# systemd-localed (optional)
|
||||||
- command -v localectl >/dev/null 2>&1 && localectl set-locale LANG=${LOCALE} || true
|
- command -v localectl >/dev/null 2>&1 && localectl set-locale LANG=${LOCALE} || true
|
||||||
- command -v localectl >/dev/null 2>&1 && localectl set-keymap ${CONSOLE_KEYMAP} || true
|
- command -v localectl >/dev/null 2>&1 && localectl set-keymap ${CONSOLE_KEYMAP} || true
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user