drauger-os-development / edamame

Linux System Installation Utility for Debian-based distributions
GNU General Public License v2.0
8 stars 4 forks source link

Setting keyboard layout does not work #72

Closed Batcastle closed 2 years ago

Batcastle commented 2 years ago

Seen when setting Layout as German and Variant as German (T3). No error output is seen in the log file: system-installer.log

/etc/default/keyboard has XKBLAYOUT and XKBVARIANT set to empty strings when they should be equal to "de" and "T3". Likely data is either being lost, or thrown out by accident.

SenlisO commented 2 years ago

When testing in 7.5.1:

system-installer module does not honor keyboard layout if set to German and German (T3) in the installer (other variants have not been tested yet). After the OS is installed, the keyboard layout will be English QWERTY regardless of what is set in the installer.

However, if the user enters keyboard settings, turns off use system defaults, add German T3, and remove the default US layout, the system will change to QWERTZ. This change lasts through a restart.

SenlisO commented 2 years ago

Problem occurs with Dvorak layout in 7.5.1 as well

SenlisO commented 2 years ago

I am having trouble testing the issue in DraugerOS 7.6 as installing it in Virtmgr isn't working for me. @Batcastle, Would you send me the configuration you use so I can check my configuration against it?

Batcastle commented 2 years ago

So I have done some digging and figured out the bug is likely occurring in usr/share/system-installer/modules/master.py. Specifically in the MainInstallation.set_keyboard() class method. This should help us narrow down from there where the data is being lost and, more importantly, why.