Set keyboard layout in minimal installation (#2399)

This commit is contained in:
codefiles 2024-03-10 04:34:32 -04:00 committed by GitHub
parent 635ae335be
commit 2a33d7cd97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 1 additions and 12 deletions

View File

@ -714,6 +714,7 @@ class Installer:
# sys_command('/usr/bin/arch-chroot /mnt hwclock --hctosys --localtime')
self.set_hostname(hostname)
self.set_locale(locale_config)
self.set_keyboard_language(locale_config.kb_layout)
# TODO: Use python functions for this
SysCommand(f'/usr/bin/arch-chroot {self.target} chmod 700 /root')

View File

@ -193,10 +193,6 @@ def perform_installation(mountpoint: Path):
if (root_pw := archinstall.arguments.get('!root-password', None)) and len(root_pw):
installation.user_set_pw('root', root_pw)
# This step must be after profile installs to allow profiles_bck to install language pre-requisites.
# After which, this step will set the language both for console and x11 if x11 was installed for instance.
installation.set_keyboard_language(locale_config.kb_layout)
if profile_config := archinstall.arguments.get('profile_config', None):
profile_config.profile.post_install(installation)

View File

@ -245,10 +245,6 @@ def perform_installation(mountpoint: Path, exec_mode: ExecutionMode):
if (root_pw := archinstall.arguments.get('!root-password', None)) and len(root_pw):
installation.user_set_pw('root', root_pw)
# This step must be after profile installs to allow profiles_bck to install language pre-requisites.
# After which, this step will set the language both for console and x11 if x11 was installed for instance.
installation.set_keyboard_language(locale_config.kb_layout)
if profile_config := archinstall.arguments.get('profile_config', None):
profile_config.profile.post_install(installation)

View File

@ -166,10 +166,6 @@ def perform_installation(mountpoint: Path):
if (root_pw := archinstall.arguments.get('!root-password', None)) and len(root_pw):
installation.user_set_pw('root', root_pw)
# This step must be after profile installs to allow profiles_bck to install language pre-requisites.
# After which, this step will set the language both for console and x11 if x11 was installed for instance.
installation.set_keyboard_language(locale_config.kb_layout)
if profile_config := archinstall.arguments.get('profile_config', None):
profile_config.profile.post_install(installation)