gnome-initial-setup should add Latin as first layout if non-Latin layout is selected on layout selection page
How to reproduce:
- Install Pop!_OS, Endless or any other distro that has keyboard layout setup enabled in
gnome-initial-setup
and whose installer doesn't add Latin (English (US)) like Fedora's installer (Anaconda) does - Boot into
gnome-initial-setup
- Select any non-Latin keyboard layout (for example Russian)
- On user creation page, try to enter your username and password
Expected results:
You can enter your username and password, create user and finish Setup.
Actual results:
You can't create user because username and password can be written only using Latin characters.
Additional info:
You can go back to keyboard layout setup, select English US (Latin) and gnome-initial-setup
will add English US (Latin) layout.
After that, your new system will have both layouts. But that shouldn't be a thing.
Tested on Pop!_OS 20.04, gnome-initial-setup
3.36.1-1ubuntu1
Why g-i-s should add Latin as first layout?
By default passwords can contain symbols, numbers and Latin characters only. If national layout is selected as first layout, you will have to switch to Latin layout if you want to enter password for your account.
Relevant art:
Linux Mint Debian Edition installer
See also:
Langtable:
langtable is used to guess reasonable defaults for locale, keyboard, territory, …, if part of that information is already known.
https://github.com/mike-fabian/langtable