Repository navigation
Load the latin1 console maps for French and German so install passwords match the LUKS prompt - #15003
omarchybot wants to merge 1 commit into
Conversation
…ds match the LUKS prompt
The installer types the password on the console under the keymap the picker loads. The bare fr and de kbd maps put ASCII where the keycaps print accented letters (é è ç à ù type { } / @ |, and ü ö ä ß type @ [ ] \), while Plymouth reads the XKB fr or de layout at the LUKS prompt and types the letter. A password with é was enrolled as { and could not be typed at boot. fr-latin1 and de-latin1 agree with XKB on every unshifted and shifted key in the main block, apart from Shift+² on French, and systemd still derives XKBLAYOUT=fr or de from them. AltGr still differs between the console and XKB in places, which no console map avoids.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Codex Medium <[email protected]>
|
|
Heads up: this looks like the same change as #14684 ("Use the latin1 console keymaps for German and French in the setup form"), which is still open and mergeable. Both switch |
|
This duplicates #14684, which is older, open against the same base ( Two things here are not in #14684: the French case in |
Only German was asserted, so reverting French or French (Switzerland) to `fr` or `fr_CH` passed the suite. Folds in the French assertion from #15003, extended to French (Switzerland), which only this pull request changes. Co-Authored-By: Omarchybot <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
#14684) * Use the latin1 console keymaps for German and French in the setup form The kbd `de`, `fr` and `fr_CH` keymaps are the old 7-bit national variants: `de` puts @ [ ] where ü ö ä belong, `fr` puts { } | where é è ù belong, and `fr_CH` leaves the accented keys unassigned. The installer loads the chosen keymap on the console, so a German or French user could not type their own letters in the name or password fields. The `-latin1` maps are the standard layouts, and systemd derives the same XKB layout from them, so the installed desktop is unchanged. Fixes #8680 Co-Authored-By: Codex Medium <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * Test that both French entries take their latin1 console maps Only German was asserted, so reverting French or French (Switzerland) to `fr` or `fr_CH` passed the suite. Folds in the French assertion from #15003, extended to French (Switzerland), which only this pull request changes. Co-Authored-By: Omarchybot <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Omarchybot <[email protected]> Co-authored-by: Codex Medium <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
omacom#14684) * Use the latin1 console keymaps for German and French in the setup form The kbd `de`, `fr` and `fr_CH` keymaps are the old 7-bit national variants: `de` puts @ [ ] where ü ö ä belong, `fr` puts { } | where é è ù belong, and `fr_CH` leaves the accented keys unassigned. The installer loads the chosen keymap on the console, so a German or French user could not type their own letters in the name or password fields. The `-latin1` maps are the standard layouts, and systemd derives the same XKB layout from them, so the installed desktop is unchanged. Fixes omacom#8680 Co-Authored-By: Codex Medium <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * Test that both French entries take their latin1 console maps Only German was asserted, so reverting French or French (Switzerland) to `fr` or `fr_CH` passed the suite. Folds in the French assertion from omacom#15003, extended to French (Switzerland), which only this pull request changes. Co-Authored-By: Omarchybot <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Omarchybot <[email protected]> Co-authored-by: Codex Medium <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit 4157e42)
The installer asks for the password on the console, under the console keymap the keyboard picker loads with
loadkeys. For French and German the picker chose the barefranddekbd maps. Those are legacy ASCII maps: on the keys whose caps print accented letters they type punctuation instead. Frenché è ç à ùcome out as{ } / @ |, and Germanü ö ä ßas@ [ ] \. The LUKS prompt at boot is Plymouth, which readsXKBLAYOUTfrom/etc/vconsole.confand uses the XKBfrordelayout, so the same key types the accented letter. A password containingéwas enrolled as{and could never be typed at boot. The user password is set from the same input, so the desktop's lock screen, which also uses XKB, rejects it too.This switches the two entries to
fr-latin1andde-latin1. Comparing theloadkeystables with libxkbcommon, they agree with XKB on every unshifted and shifted key in the main block, apart from Shift+²on French. systemd'skbd-model-mapstill derivesXKBLAYOUT=frandXKBLAYOUT=defrom them, so Hyprland, the login screen and the initramfs layout check see no change. The installer's live ISO and first-boot setup both read this list, so both pick up the change. Installs that already haveKEYMAP=frorKEYMAP=deare not migrated.AltGr still differs between the console and XKB in places, and no console map avoids that: console maps have no AltGr letters like
æor€, andfr-latin1makes AltGr+2,7and9dead keys where XKB types a literal~,`and^. A dead key followed by a character it does not combine with still types both characters, so these only matter when that character is a vowel,nor a space. Lithuanian (lt) and Slovak (sk-qwertz) have the same plain-key mismatch on their number rows, and no kbd map with a matching XKB layout fixes them by renaming. They are left for a separate change.Fixes #9442. Related to #8196, whose report of digits rejected under French AZERTY this does not explain: Shift and the number row agree between the two maps.