Skip to content

fix(system): set keymaps without conversion - #166

Merged
TechDufus merged 1 commit into
mainfrom
fix/keymap-no-convert
Nov 30, 2026
Merged

TechDufus merged 1 commit into
mainfrom
fix/keymap-no-convert

Conversation

@TechDufus

Copy link
Copy Markdown
Owner

Why

Follow-up to #165, found on the first real VM run. localectl converts each keymap call into the other side unless told not to:

  • set-keymap us rewrote the X11 layout to us / pc105+inet / terminate:ctrl_alt_bksp.
  • set-x11-keymap us pc105 "" caps:none then converted back to the console keymap us-acentos, because systemd's kbd-model-map matches model pc105 to that row before plain us. us-acentos has dead keys for ', ", `, ~ and ^.
  • The next run would have flipped both again, so the step never converged.

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-convert on both calls. The test stubs localectl, which is why it did not catch the conversion.

Verified

  • On the VM (KVM, starting from us-acentos): the patched bootstrap gave VC Keymap: us, X11 Layout: us, X11 Model: pc105, X11 Options: caps:none; a repeat run made no localed change.
  • bash modules/system/tests/test_keymap.sh passes.

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.
@TechDufus
TechDufus merged commit 5244faa into main Nov 30, 2026
5 checks passed
@TechDufus
TechDufus deleted the fix/keymap-no-convert branch November 30, 2026 20:02
TechDufus added a commit that referenced this pull request Nov 30, 2026
Reverts #166 and #165. The VM they were written for is gone, so nothing uses the virtual-machine branch of the keymap step. bootstrap sets Dvorak on every Linux machine again; test_keymap.sh, the check:system-keymap task, its CI step and its docs are removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant