Skip to content

Give a KEYMAP-only console its XKB layout while the splash's hooks wait on a .pacnew - #21290

Merged
dhh merged 3 commits into
quattrofrom
fix/issue-21135
Dec 2, 2026
Merged

dhh merged 3 commits into
quattrofrom
fix/issue-21135

Conversation

@omarchybot

@omarchybot omarchybot commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

The boot splash types the disk password with /etc/vconsole.conf's XKB lines. A console set up with only a KEYMAP gets those lines from the splash's migration (1795834060) before the first image is built. Otherwise the splash falls back to asking for the password on the console. That migration added the lines only when the live HOOKS named omarchy-splash. On an install whose edited omarchy_hooks.conf still set Plymouth's line, with the packaged one left beside it as .pacnew, the check was false. The migration still wrote its machine-wide marker, and every later run exits on that marker. So once the .pacnew was merged, the splash got a KEYMAP it cannot type with (#21135).

Machines that haven't run the migration yet. While omarchy_hooks.conf.pacnew exists and the live HOOKS are still the old busybox Plymouth line (udev and plymouth, no systemd), 1795834060 now also asks what the HOOKS would be with the packaged file in the edited one's place. If the splash would draw the prompt, the lines go in before the merge, as they already do where the splash is live. The check doesn't fire when an install keeps Plymouth on purpose, either with no .pacnew or with its own drop-in setting Plymouth's line, or when the edited file chose a systemd initramfs, whose sd-vconsole would type with the lines too. Plymouth would type its prompt with the new lines too, which is what the original check exists to avoid. A .pacnew doesn't prove the Plymouth line is accidental, so an install that keeps Plymouth in an edited omarchy_hooks.conf should set it in a drop-in of its own.

Machines that already ran it. The new migration 1796207640 does the same step once, and rebuilds the boot images only where the splash draws them. It records the pending rebuild before adding the lines. A failed rebuild is therefore retried on the next run, even though by then the keymap no longer looks like it needs the lines.

Zenbook A16. That step keeps its check on the live HOOKS. Dropping plymouth.enable=0 while Plymouth still draws the prompt would bring back its black panel. On a Zenbook with an unmerged .pacnew, the splash therefore stays off after the merge and the password is asked on the console, as it was before.

What this doesn't cover. The reporter's black screen at the console fallback is not explained by this, and is still open on #21135.

Refs #21135

Checked on a worker with sudo omarchy-update-boot-splash stubbed to record rebuilds. Quattro's migration, on a pending .pacnew with KEYMAP=pl, leaves no XKB lines and sets its marker. With this change the lines go in once. Nothing happens with no .pacnew, with a user drop-in pinning Plymouth, with an edited file that chose a systemd initramfs, with XKB lines already present, or on an Apple Silicon baseline. A failed rebuild is retried on the next run. Reviewed by Opus 5.5 High, Codex XHigh and Antigravity XHigh. A kernel update before the .pacnew is merged can carry the new lines into a Plymouth image for a Latin layout, where they type the same passphrase the console keymap did.

🤖 Generated with Claude Code

…it on a .pacnew

The splash's migration added vconsole.conf's XKB lines only when the live HOOKS named omarchy-splash. On an install whose edited omarchy_hooks.conf still set Plymouth's line, with the packaged one left as .pacnew, that was false, yet the migration marked itself done, so merging the .pacnew later left the splash with a KEYMAP it cannot type with and the password on the console. While that .pacnew exists, it now also asks what the HOOKS would be without the edited file, so the lines go in before the merge. An install that keeps Plymouth on purpose, with no .pacnew or with its own drop-in setting Plymouth's line, is left as it was, since Plymouth would type its prompt with the new lines too.

A new migration does the same once on machines that already ran it, rebuilding the boot images only where the splash draws them. The pending rebuild is recorded before the lines go in, so a failed one is retried on the next run even though the keymap no longer needs the lines.

The Zenbook A16 step keeps its gate on the live HOOKS: dropping plymouth.enable=0 while Plymouth still draws the prompt would bring back its black panel.

Fixes #21135

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

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

Summary

The migrations now preview a pending .pacnew only when the live boot configuration uses busybox Plymouth.

  • Boot migrations give the splash a console keymap layout when hooks switch to it.

No new actionable issues were found.

Reviews (3) · Last reviewed commit: "Trust the .pacnew forecast only while th..." · Reviewed by Greptile

@omarchybot omarchybot added the bug Something isn't working label Dec 2, 2026
The packaged drop-in can replace kms with omarchy-kms. A later drop-in may choose Plymouth based on that hook, so skipping the edited file can predict a splash where the merged configuration still uses Plymouth. Put the packaged file at the edited file's position so the forecast reflects the hooks the upgrade will use.
@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Dec 2, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator Author

Codex High reproduced the missing Polish layout on an Omarchy ISO worker. The splash received pl,us with the patch, and reverting restored the console fallback. Commit f99a24812 makes both migrations evaluate the packaged .pacnew in its actual position so a later NVIDIA drop-in can still select Plymouth. The CLI suite and focused boot tests passed. Opus 5.5 High and muse-wonder via pi, thinking high, agreed on the corrected code and the closing link after seeing the same evidence.

Please change Fixes #21135 to Refs #21135 so the unexplained black screen stays open. An edited hooks file that intentionally keeps Plymouth can still trigger the XKB change if the .pacnew is pending. A later drop-in preserves that Plymouth choice. #11418 leaves an already-built splash image untouched, and #21146 addresses a separate fallback path.

These captures exercise prompt routing under nested Sway on the worker with a dummy unlock command.

Base routes the request to the console

Patched migration lets the splash show the unlock field

…Plymouth

An edited omarchy_hooks.conf that chose a systemd initramfs (sd-encrypt for TPM2 or FIDO2 unlock, say) also leaves a .pacnew beside it, and replacing it with the packaged file exposes the splash baseline. The forecast then added the XKB lines to a machine whose sd-vconsole and Plymouth would type the password with them. The edit that strands a KEYMAP is the old busybox Plymouth line, so the forecast now applies only while the live HOOKS have udev and plymouth and not systemd, which a systemd line can keep beside udev.

Co-Authored-By: Antigravity XHigh <noreply@google.com>
Co-Authored-By: Codex XHigh <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot

Copy link
Copy Markdown
Collaborator Author

Reviewed by Opus 5.5 in Claude Code at the maintainer's request with Codex XHigh and Antigravity XHigh. 8d623b4 applies the forecast only while the live HOOKS are still the old busybox Plymouth line (udev and plymouth, no systemd), so an edited omarchy_hooks.conf that chose a systemd initramfs, which also leaves a .pacnew, no longer gets XKB lines its sd-vconsole would type with. Antigravity found the systemd-initramfs case and Codex the systemd line that keeps udev. Re-run on a worker: the reporter's case still gets its lines once, and the systemd override now gets none. Their other findings already exist in quattro's own code (glob order versus mkinitcpio's version sort, concatenated drop-ins, migrations deferred by an unrelated exit 75) or concern a 00-omarchy-hooks.conf.pacnew, which pacman never creates because that file isn't in omarchy-settings' backup list.

@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review and removed verified Omarchy Triage has verified that this issue is ready for final review labels Dec 2, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator Author

Recommend: Hold — the maintainer needs to decide whether a pending .pacnew should change the keyboard settings while Plymouth is still in use. Change Fixes #21135 to Refs #21135 so the black-screen report stays open.

Codex High reproduced the missing Polish layout on quattro and verified the fix on an Omarchy ISO worker at 8d623b49. The CLI suite and four focused boot tests passed. The new migration also fixed the layout with the v4.6.0-rc2 migration left as shipped. Opus 5.5 High checked the new systemd guard and traced the other routes into the console fallback.

The captures use nested Sway and a dummy unlock command.

Base hands the request to the console

Current head shows the unlock field in the splash

@dhh
dhh merged commit 765a40c into quattro Dec 2, 2026
5 checks passed
@dhh
dhh deleted the fix/issue-21135 branch December 2, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants