Skip to content

Load the latin1 console maps for French and German so install passwords match the LUKS prompt - #15003

Closed
omarchybot wants to merge 1 commit into
quattrofrom
fix/issue-9442
Closed

omarchybot wants to merge 1 commit into
quattrofrom
fix/issue-9442

Conversation

@omarchybot

Copy link
Copy Markdown
Collaborator

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 bare fr and de kbd 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 reads XKBLAYOUT from /etc/vconsole.conf and uses the XKB fr or de layout, 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-latin1 and de-latin1. Comparing the loadkeys tables with libxkbcommon, they agree with XKB on every unshifted and shifted key in the main block, apart from Shift+² on French. systemd's kbd-model-map still derives XKBLAYOUT=fr and XKBLAYOUT=de from 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 have KEYMAP=fr or KEYMAP=de are 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 €, and fr-latin1 makes AltGr+2, 7 and 9 dead 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, n or 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.

…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]>
@greptile-apps

greptile-apps Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

French and German keyboard choices now use fr-latin1 and de-latin1 during setup.

  • French and German installs now use console maps that match accented XKB keys.

Reviews (1) · Last reviewed commit: "Load the latin1 console maps for French ..." · Reviewed by Greptile

@jandrusk

Copy link
Copy Markdown

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 fr → fr-latin1 and de → de-latin1 in install/provisioning/setup-form.sh. It would be good to pick one, perhaps folding this PR's write-up and test into #14684 or the other way round, and close the other so maintainers only review it once.

@omarchybot omarchybot added the bug Something isn't working label Oct 16, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator Author

This duplicates #14684, which is older, open against the same base (quattro), and makes the same change: in install/provisioning/setup-form.sh it maps French to fr-latin1 and German to de-latin1, and updates the same assertion in test/shell.d/setup-form-test.sh. The cause and the fix are the same; the LUKS prompt mismatch this pull request describes for #9442 and the unusable name and password fields #14684 describes for #8680 are both the bare fr and de console maps typing ASCII where the keycaps print accented letters. #14684 also covers French (Switzerland), moving fr_CH to fr_CH-latin1, which systemd's kbd-model-map maps to the same XKB ch/fr layout, so it is the more complete of the two.

Two things here are not in #14684: the French case in setup-form-test.sh, and the link to #9442. Both have been handed to #14684 to fold in, so #9442 closes when that one merges. Compared by Claude Opus 5.5 by reading both diffs and the keymap tables; the classification was agreed with Codex Medium, and its separate duplicate check runs before this closes. If this is wrong, it can be reopened.

@omarchybot omarchybot added the duplicate This issue or pull request already exists label Oct 16, 2026
@omarchybot omarchybot closed this Oct 16, 2026
omarchybot added a commit that referenced this pull request Oct 16, 2026
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]>
omarchybot added a commit that referenced this pull request Oct 31, 2026
#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]>
berenddeboer pushed a commit to berenddeboer/omarchy that referenced this pull request Nov 6, 2026
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working duplicate This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keyboard layout mismatch between installation and login

2 participants