Skip to content

Keep Serbian Latin on US in legacy pre-built UKIs - #621

Closed
emirb wants to merge 1 commit into
quattrofrom
fix/serbian-vconsole-nonlatin
Closed

emirb wants to merge 1 commit into
quattrofrom
fix/serbian-vconsole-nonlatin

Conversation

@emirb

@emirb emirb commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Problem

vconsole_is_nonlatin exempted Serbian Latin (XKBLAYOUT=rs, XKBVARIANT=latin), while omarchy_hooks.conf, omarchy_vconsole.conf, default/splash/layouts, and kmscon.sh on quattro (#20404) all include every rs variant in the US-prompt list. On a legacy Plymouth image, the installer and rebuilt initramfs both start in US while the pre-built UKI embeds rs(latin) (QWERTZ, swapping y/z and remapping punctuation), locking out encrypted Serbian installs.

Confirmed bare-metal on an encrypted sr-latin install where physical US keys omarchyz/1 enrolled omarchzy-1 under rs(latin) and were rejected (cryptsetup --test-passphrase, rc=2) against a US-first unlock prompt.

Fix

Remove the rs + latin* exemption and its now-unused XKBVARIANT parsing from vconsole_is_nonlatin in uki_vconsole.py, and update the legacy Plymouth log lines in phases_impl.py so they accurately describe the US unlock layout.

Making rs(latin) native everywhere instead was ruled out because omarchy_hooks.conf and omarchy_vconsole.conf have excluded rs since #6229; switching them to bundle rs(latin) would silently flip existing encrypted Serbian installs from QWERTY to QWERTZ on their next kernel update.

Scope and risk

Only legacy Plymouth pre-built UKI handling (vconsole_is_nonlatin and its log lines in finalize_limine_boot) changes. Splash images on quattro use _splash_layout_matches and are unaffected. All Latin layouts outside NON_LATIN_LAYOUTS stay unchanged; Serbian Latin installs now reuse a US-baked pre-built UKI without rebuilding.

Evidence

  • python3 -m unittest discover -s test/unit -p 'test_uki_vconsole.py' — failed red on sr-latin before the fix, 15 tests green after.
  • python3 -m unittest discover -s test/unit -p 'test_prebuilt_uki_keymap.py' — failed red on sr-latin before the fix, 18 tests green after.
  • python3 -m unittest discover -s test/unit — 856 tests OK.

@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge; no actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

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

Summary

Serbian Latin now follows the existing US unlock policy for legacy Plymouth pre-built UKIs.

  • Serbian Latin installs reuse legacy UKIs with a US unlock prompt.

No actionable issues found. Tests were not run during this review.

Reviews (1) · Last reviewed commit: "Keep Serbian Latin on US in legacy pre-b..." · Reviewed by Greptile

@github-actions

Copy link
Copy Markdown

Install test passed

x86_64 vs quattro aarch64 vs quattro
Result ✅ passed ✅ passed
Build the ISO 89.0 s +5.0 s 169.0 s +5.0 s
ISO size 6.64 GiB +0 MiB 6.48 GiB −1 MiB
Live boot 3.7 s +0.0 s 3.5 s +0.0 s
Medium read 6.63 GiB 🔴 +715 MiB – –
Install 13.6 s +0.1 s 16.5 s +0.0 s
Install (encrypted) 19.0 s 🟢 −1.0 s – –
First boot (OS) 6.0 s +0.1 s 6.2 s −0.1 s
Everyday boot (OS) 5.9 s −0.1 s 6.0 s +0.0 s
Login to Hyprland 1.1 s +0.0 s – –
Login to desktop 2.7 s +0.0 s – –
Login to settled desktop 3.5 s +0.0 s – –

OS boots sum systemd-analyze's loader, initrd (when present), kernel, and userspace startup time, without the VM's firmware. Live boot is live-ISO kernel uptime when the greeter is ready (or when unattended install starts). Login timings start right before password submit over SSH: Login to desktop stops at visible bar with startup cover gone; Login to settled desktop waits for omarchy-provision-first-run.

Install phases, x86_64
Phase This PR quattro vs quattro
Preparing live environment 0.1 s 0.1 s +0.0 s
Preparing install target 7.7 s 8.3 s 🟢 −0.5 s
Installing Arch + Omarchy 4.4 s 3.9 s 🔴 +0.5 s
↳ Partition and format 0.2 s 0.3 s +0.0 s
↳ Write root image 3.3 s 2.8 s 🔴 +0.5 s
↳ Create user 0.6 s 0.5 s +0.0 s
Configuring system 0.5 s 0.5 s +0.0 s
Finalizing boot and user 0.6 s 0.5 s +0.0 s
↳ Finalize boot (parallel) 0.3 s 0.3 s +0.0 s
↳ Provision user (parallel) 0.6 s 0.5 s +0.0 s
Configuring SSH access 0.2 s 0.2 s +0.0 s
Creating factory snapshot 0.1 s 0.1 s +0.0 s

3 phases under 0.05 s on both branches omitted.

Install phases, x86_64 (encrypted)
Phase This PR quattro vs quattro
Preparing live environment 0.1 s 0.1 s +0.0 s
Preparing install target 13.6 s 14.8 s 🟢 −1.1 s
Installing Arch + Omarchy 3.6 s 3.4 s +0.1 s
↳ Partition and format 0.3 s 0.4 s +0.0 s
↳ Write root image 2.1 s 2.0 s +0.1 s
↳ Create user 0.7 s 0.7 s +0.0 s
Configuring system 0.7 s 0.7 s +0.0 s
Finalizing boot and user 0.7 s 0.7 s +0.1 s
↳ Finalize boot (parallel) 0.4 s 0.4 s +0.0 s
↳ Provision user (parallel) 0.7 s 0.7 s +0.1 s
Configuring SSH access 0.2 s 0.3 s −0.1 s
Creating factory snapshot 0.1 s 0.1 s +0.0 s

3 phases under 0.05 s on both branches omitted.

Install phases, aarch64
Phase This PR quattro vs quattro
Preparing live environment 0.1 s 0.1 s +0.0 s
Preparing install target 6.7 s 6.7 s +0.0 s
Installing Arch + Omarchy 7.4 s 7.4 s +0.1 s
↳ Partition and format 0.5 s 0.5 s +0.0 s
↳ Write root image 5.6 s 5.5 s +0.1 s
↳ Create user 1.0 s 1.0 s +0.0 s
Configuring system 0.8 s 0.9 s +0.0 s
Finalizing boot and user 1.0 s 1.0 s +0.0 s
↳ Finalize boot (parallel) 0.9 s 0.9 s +0.0 s
↳ Provision user (parallel) 1.0 s 1.0 s +0.0 s
Configuring SSH access 0.3 s 0.3 s +0.0 s
Validating boot setup 0.1 s 0.1 s +0.0 s
Creating factory snapshot 0.1 s 0.1 s +0.0 s

2 phases under 0.05 s on both branches omitted.

Run · 3843bb2

@emirb

emirb commented Nov 29, 2026

Copy link
Copy Markdown
Contributor Author

Closing: keeping rs(latin) native QWERTZ in omarchy (quattro), which already matches uki_vconsole.py.

@emirb emirb closed this Nov 29, 2026
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