Keyboard layout does not persist in /etc/vconsole.conf
Hello, After finishing the Arch Linux installation (without desktop environment or X11) I can't make the keyboard layout persistent. (I am using the 01/2023 ISO as installation medium) I have set the keyboard layout to de-latin1 in /etc/vconsole.conf. This is the content of /etc/vconsole.conf: KEYMAP=de-latin1 Usually this works and the keyboard layout is permanent. But somehow systemd does not read it and after every reboot I am back to US layout. I tried to set the keyboard layout through a kernel parameter like this: GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet vconsole.keymap=de-latin1" But it did not solve the issue. According to pstree systemd should be the init system. Does someone have an idea what could've gone wrong in the installation process? Regards Björn
Did you recreate the initrd? mkinitcpio -p linux Am 06.01.23 um 10:18 schrieb Björn Försterling:
Hello,
After finishing the Arch Linux installation (without desktop environment or X11) I can't make the keyboard layout persistent. (I am using the 01/2023 ISO as installation medium) I have set the keyboard layout to de-latin1 in /etc/vconsole.conf. This is the content of /etc/vconsole.conf: KEYMAP=de-latin1
Usually this works and the keyboard layout is permanent.
But somehow systemd does not read it and after every reboot I am back to US layout. I tried to set the keyboard layout through a kernel parameter like this: GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet vconsole.keymap=de-latin1" But it did not solve the issue.
According to pstree systemd should be the init system.
Does someone have an idea what could've gone wrong in the installation process?
Regards Björn
That resolved my issue. Thank you very much. Regards Björn On Fri, 2023-01-06 at 10:52 +0100, Uwe Sauter wrote:
Did you recreate the initrd?
mkinitcpio -p linux
Am 06.01.23 um 10:18 schrieb Björn Försterling:
Hello,
After finishing the Arch Linux installation (without desktop environment or X11) I can't make the keyboard layout persistent. (I am using the 01/2023 ISO as installation medium) I have set the keyboard layout to de-latin1 in /etc/vconsole.conf. This is the content of /etc/vconsole.conf: KEYMAP=de-latin1
Usually this works and the keyboard layout is permanent.
But somehow systemd does not read it and after every reboot I am back to US layout. I tried to set the keyboard layout through a kernel parameter like this: GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet vconsole.keymap=de-latin1" But it did not solve the issue.
According to pstree systemd should be the init system.
Does someone have an idea what could've gone wrong in the installation process?
Regards Björn
You can derive this only by the order in which the steps are described in the installation guide [1]. Localization comes before creating the initramfs. [1] https://wiki.archlinux.org/title/Installation_guide Am 06.01.23 um 13:04 schrieb Andy Pieters:
On Fri, 2023-01-06 at 10:52 +0100, Uwe Sauter wrote: > Did you recreate the initrd? > > mkinitcpio -p linux
I do not remember that being a requirement.
When was this introduced and is it documented? (apologise for my indolence)
You can derive this only by the order in which the steps are described in the installation guide [1]. Localization comes before creating the initramfs. And because there is a keymap hook in mkinitcpio.conf [2] which is explained as: "Adds the specified keymap(s) from /etc/vconsole.conf to the initramfs. If you use system encryption, especially full-disk encryption, make sure you add it before the encrypt hook." [1] https://wiki.archlinux.org/title/Installation_guide [2] https://wiki.archlinux.org/title/Mkinitcpio Am 06.01.23 um 13:04 schrieb Andy Pieters:
On Fri, 2023-01-06 at 10:52 +0100, Uwe Sauter wrote: > Did you recreate the initrd? > > mkinitcpio -p linux
I do not remember that being a requirement.
When was this introduced and is it documented? (apologise for my indolence)
participants (3)
-
Andy Pieters
-
Björn Försterling
-
Uwe Sauter