Repository navigation
Repair KEYMAP-only vconsole.conf installs - #11418
IridescentRose wants to merge 6 commits into
Conversation
johnpippett
left a comment
There was a problem hiding this comment.
I tested commit 5585559b20f72f181c892e0fd81f97abe62c0012 with temporary keyboard configuration files. Two new write paths gave incorrect results.
-
In
bin/omarchy-provision-owner, lines 618–657, a selected keymap without a variant leaves an oldXKBVARIANTin the file. WithKEYMAP=plandXKBVARIANT=dvorak, the new path addsXKBLAYOUT=plbut keepsXKBVARIANT=dvorak. The migration has the same result. Please clear an old variant when the new keymap has no variant. -
In
migrations/1789183087.sh, lines 19–38, the assignment check does not accept leading spaces. WithKEYMAP=deandXKBLAYOUT=fr, the migration adds a secondXKBLAYOUT=deline. The shared Lua parser accepts the first line, then reads the second value. Please use the same assignment rules for reading and writing these files.
The focused keyboard, migration, and provisioning suites passed. Two independent isolated checks reproduced these edge cases. I did not test a real first boot, login screen, or physical keyboard.
This branch also includes #9762. Maintainers closed #9762 without a merge because it overlaps with #6896. Please resolve this dependency before merging this PR.
5585559 to
c92172c
Compare
|
Should be good for a re-review |
johnpippett
left a comment
There was a problem hiding this comment.
The two write defects from my earlier review no longer occur in these checks at 5d98d1dd8de0d93761c8dabf8ec6425386a65c4f.
Codex repeated the original cases with temporary files in Bubblewrap on Arch Linux. Both first-boot exposure and migration remove a stale XKBVARIANT=dvorak when the new keymap is pl. Both paths also preserve an existing indented layout assignment. The earlier head reproduces all four incorrect results; the revised head corrects them.
All 91 checks in the four focused keyboard, migration, provisioning, and setup suites gave correct results. The new shell reader also agreed with the Lua reader in 42 comparisons across 14 inputs.
A separate migration check simulated failure of the layout append. The migration reported failure, kept unrelated lines, and completed on retry. A third run left the file unchanged. Privileged commands used temporary substitutes.
One additional expectation still fails: an empty XKBLAYOUT= gives an empty resolved layout. The old head, revised head, and unchanged base b421b1b479ee9ea0863792282eee4ffeb50923dc all give this result. This is separate from the corrected write defects.
The branch now includes the current #6896 dependency. That PR remains open and unmerged.
These checks did not use a real first boot, SDDM login, initramfs rebuild, LUKS prompt, or physical keyboard. No installed configuration changed.
|
I read this pull request at What reading checked:
Next: the second opinion and a worker run on a later pass. The maintainer decides whether the ISO gap is fixed in omarchy-iso alongside this pull request. |
johnpippett
left a comment
There was a problem hiding this comment.
Approve. This review replaces my September 28 request for changes.
Tested commit: 5d98d1dd8de0d93761c8dabf8ec6425386a65c4f, merged locally into quattro at 988f44ea.
Checks and environment: Claude Code did these checks on Arch Linux. The tests used Bubblewrap with a read-only root and no network.
- The two defects from my September 28 review do not occur at this commit. A stale
XKBVARIANTis removed, and an indentedXKBLAYOUTline is kept. My September 29 review gives the details. - #6896 merged on October 4 as
75b327bc. The dependency in my earlier reviews is closed. The local merge intoquattrohad no conflicts. After the merge, the #6896 commits add no changes, and the diff has seven files. - On the merged tree, 128 of 128 checks passed in five suites:
hyprland-keyboard-layout(11),keyboard-layout(37),keyboard-xkb-migration(25),provision-owner-keyboard(33), andsetup-form(22).
Remaining concerns: none from these checks.
Not tested: a real first boot, the SDDM login screen, an initramfs rebuild, LUKS password entry, and a physical keyboard.
|
Looks merge-ready after #6896 landed and the stale-XKBVARIANT / indented-assignment fixes. One leftover for maintainers/ISO: fresh ISO installs with the nine gap keymaps still skip the migration ( |
|
It seems #14431 has largely fixed this issue, all that remains of value to this PR is the migrations. |
The XKB gap table lived in omarchy-provision-owner, where nothing else can source it. setup-form.sh is already sourced by provision-owner and holds the layout list the table answers for, so a migration repairing installs that predate the table can read the same values instead of keeping a copy.
Machines set up before first-boot setup filled in the XKB variables still carry a vconsole.conf with only KEYMAP for the keymaps systemd's kbd-model-map lacks (Polish, Czech, Ukrainian, Colemak, ...). The session and the SDDM greeter then resolve "us", so a password typed under the chosen layout can't be reproduced at login (omacom#9442). The migration takes the layout from kbd-model-map, reading its tab-padded columns logically, and otherwise writes what keyboard_xkb_settings gives first-boot setup today, plus French for the azerty keymap the form no longer offers. It replaces any stale XKB lines instead of appending after them, and first reapplies the non-Latin initramfs repair that 1784476564.sh skips when XKBLAYOUT is absent, so a cancelled sudo leaves it pending.
5d98d1d to
aeaede5
Compare
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummaryRepairs existing installs whose
The earlier test-path finding no longer applies because the affected test was deleted. Its thread was manually resolved without explanation. Reviews (3) · Last reviewed commit: "Give the XKB migration a current timesta..." · Reviewed by Greptile |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
|
I reviewed this at What ran, on the worker:
What blocks it. The guard against non-Latin layouts at the LUKS prompt only removes Omarchy's own Latin layouts at the LUKS prompt. For Overlapping pull requests. #8685 fixes only the session reader and leaves the SDDM greeter on Second opinion. Codex Medium reviewed the same head. It found the Plymouth bundling problem, which I then confirmed on the worker. It agreed with the reading on Latin layouts and on the overlapping pull requests, though its independence from my reasoning is not guaranteed. It found no other defect. I pushed nothing. It is labelled |
Omarchy's AGENTS.md and agents/skills/migrations.md rule out tests for migrations: a migration runs once per machine and is frozen once it ships, so a test of it stops guarding anything. keyboard_xkb_settings, the logic worth keeping covered, is still exercised by provision-owner-keyboard-test.sh. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The rebuild ran before XKBLAYOUT was written, so omarchy_vconsole.conf could not yet see a non-Latin layout and the new image held the same KEYMAP-only file as the old one: it repaired nothing, and a failed rebuild left every later migration pending. Removing a stale unconditional FILES line is the part that matters, since the image on disk predates the layout and the next rebuild then leaves the file out. Appending to a vconsole.conf whose last line has no newline joined XKBLAYOUT onto it, corrupting KEYMAP. Start the payload on its own line. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex Medium <[email protected]>
Migrations are strictly ordered, and this one was named before about forty that have since shipped on quattro. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
I reviewed this again because two things changed. #14885 merged, so a non-Latin I pushed three commits to your branch, @IridescentRose:
What ran. I merged this branch into current Second opinion. Codex Medium and muse-wonder (via pi, thinking high) reviewed it in two rounds. In the first round they found the rebuild ordering, the unchecked rebuild exit code, the missing-newline append and the stale timestamp. I confirmed each one in the source before fixing it. Both reviewed the fixes and found nothing open. Their agreement isn't guaranteed to be independent, since they can read this session's work. Still open. The description still says It is labelled |
Closes #9442
Machines set up before first-boot setup filled in the XKB variables still have a
vconsole.confwith onlyKEYMAPfor the keymaps systemd'skbd-model-maplacks (Polish, Czech, Ukrainian, Colemak, ...). The session and the SDDM greeter then resolveus, so a password typed under the chosen layout can't be reproduced at login. New installs are already covered bykeyboard_xkb_settingsinapply_keyboardThis pull request now only contains migration paths since upstream was fixed.