Repository navigation
fix(system): set keymaps without conversion - #166
Merged
Merged
Conversation
localectl converts each keymap call into the other side. For plain US, set-x11-keymap picked the console keymap us-acentos, which has dead keys, and the next run flipped it back and forth. Both calls now pass --no-convert, so the console keymap and the X11 layout are exactly what bootstrap names. Seen on the first VM run after #165; a patched run there converged to us and a repeat made no change.
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Follow-up to #165, found on the first real VM run.
localectlconverts each keymap call into the other side unless told not to:set-keymap usrewrote the X11 layout tous/pc105+inet/terminate:ctrl_alt_bksp.set-x11-keymap us pc105 "" caps:nonethen converted back to the console keymapus-acentos, because systemd'skbd-model-mapmatches modelpc105to that row before plainus.us-acentoshas dead keys for',",`,~and^.Dvorak was unaffected: its map row converts back to
dvorak.What changes
modules/system/bootstrap.sh: both calls pass--no-convert, so the console keymap and the X11 layout are exactly what bootstrap names, for Dvorak and US alike.modules/system/tests/test_keymap.sh: expects--no-converton both calls. The test stubslocalectl, which is why it did not catch the conversion.Verified
us-acentos): the patched bootstrap gaveVC Keymap: us,X11 Layout: us,X11 Model: pc105,X11 Options: caps:none; a repeat run made nolocaledchange.bash modules/system/tests/test_keymap.shpasses.