Bug 25465

Summary: Installer rescue shell loadkeys: important keymaps are not found
Product: Mageia Reporter: Morgan Leijström <fri>
Component: Release (media or process)Assignee: Thierry Vignaud <thierry.vignaud>
Status: RESOLVED INVALID QA Contact:
Severity: enhancement    
Priority: Low CC: isobuild, sysadmin-bugs, tmb
Version: 7   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: drakx-installer-rescue CVE:
Status comment:

Description Morgan Leijström 2019-09-23 17:15:33 CEST
Description of problem:
1. Boot 7.1 classic installer (64 bit tested)
2. Select rescue
3. Select shell
4. issue "loadkeys se"
5. Almost no key is correct!

The swedish åäö is on qwe, but they should be on the other side of the keyboard and on two rows.  Plus most other keys are scrambled.

Workaround: power cycle...

I have not tested other layouts, but I suggest all to be tested when working on correcting this.
Comment 1 Lewis Smith 2019-09-23 20:46:00 CEST
Assigning to tv for 'drakx-installer-rescue', CC'ing ISO team for info.

Assignee: bugsquad => thierry.vignaud
CC: (none) => isobuild

Comment 2 Thomas Backlund 2019-09-23 20:48:52 CEST

"se" is is not swedish, it's Saami.

you want loadkeys sv

Status: NEW => RESOLVED
Resolution: (none) => INVALID
CC: (none) => tmb

Comment 3 Lewis Smith 2019-09-23 20:55:14 CEST
Thomas: thank you for the lightning diagnosis.
Comment 4 Morgan Leijström 2019-09-24 12:38:35 CEST
Ah! Thank you Thomas.

Anyhow:

I also tried sv but get "cannot open file sv"  And the same for sv_se, sv_fi
To recover i tried en, en_gb, en_us

A few tests:
Exist: se, de, nl, fi, fr, es, gr, hu, ru 
Missing: en, sv, da, no, be  (probably more)
For pl it say it cannot open include file dvorak.map.

Also:

# loadkeys -d
Cannot find defkeymap.map
 
So some files seem to be missing

If we should keep the number low, at least i think en and defkeymap should be included.

Summary: Installer rescue shell loadkeys se layout is a complete mess => Installer rescue shell loadkeys: important keymaps are not found
Resolution: INVALID => (none)
Severity: normal => enhancement
Status: RESOLVED => REOPENED
Priority: Normal => Low

Comment 5 Thierry Vignaud 2020-03-20 16:33:16 CET
You don't want "sv": you want "se" which is included.
Likewise:
- english users want "en" -> "us"
- "da" -> "dk"
- "no" -> "no-latin1"
- "be" -> "be2-latin1"
- …

Those are the upstream naming…

Actually the rescue systems include all mappings listed in keyboard.pm:
http://gitweb.mageia.org/software/drakx/tree/rescue/list.xml?h=18.25#n159

Source RPM: (none) => drakx-installer-rescue
Resolution: (none) => INVALID
Status: REOPENED => RESOLVED

Comment 6 Morgan Leijström 2020-03-21 12:35:18 CET
As per description i tried sv, which is wrong.  Thomas told it is Saami.
Comment 7 Thierry Vignaud 2020-03-23 18:06:50 CET
ISO code for languages & keyboard
Keyboardrake maps language to keyboard through %lang2keyboard:
Samish:
  'se'  => 'smi or smi_sefi
Swedish:
  'sv'  => 'se, fi or dvorak_se:10

In %keyboards, it maps keyboards to loadkeys layout

For Samish, keyboardrake set:
"smi"          => "no-latin1",
 "smi_sefi"    => "se-latin1",

For Swedish, keyboardrake set:
  'se'  => se-latin1

So you want to run "loadkeys se-latin1"

You can check /usr/lib/libDrakX/keyboard.pm for alternatives (dvorak & the like)
Comment 8 Morgan Leijström 2020-03-23 19:15:27 CET
Ah, thank you.

For us occasional home admins this is a awkward. Would it be possible to add a hint to a list of the language/layouts?

And also how to reset to default... "loadkeys -d" can be made working, which seem to need defkeymap.map