Skip to content

Run the kmscon installer in Japanese and Korean - #4

Closed
xdanger wants to merge 12 commits into
quattrofrom
feat/kmscon-ja-ko-installer
Closed

xdanger wants to merge 12 commits into
quattrofrom
feat/kmscon-ja-ko-installer

Conversation

@xdanger

@xdanger xdanger commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

The kmscon installer from omacom#434 now runs in Japanese and Korean as well as Chinese. This fork PR targets quattro so CI builds against the current package lists; omacom#434's three commits come first, then the Japanese and Korean work and a merge of quattro. Upstream: omacom#461.

What changes

  • New Japanese (ja) and Korean (ko) installer catalogs. Picking either language moves the installer into kmscon, the same way Simplified Chinese does. The handoff, display-width centering and font bundle are unchanged.
  • kmscon now draws Han characters in the forms of the chosen language. Before this, Japanese text used Simplified Chinese glyphs. The bundled NotoSansCJK-Regular.ttc already contains the JP, KR, SC and TC faces, so the live image doesn't grow.
  • The installer relaunches kmscon when the language's Han forms change, not only when the keyboard layout does. Otherwise picking Chinese, going back and picking Japanese with an unchanged layout would keep Chinese glyphs.
  • Keyboards need no changes. The language defaults already preselect Japanese (jp106, which kmscon runs as XKB jp/jp106) and Korean (US console keymap). Omarchy then sets up the installed system the way it already does: the session LANG, and Fcitx with Mozc or Hangul (Korean on kr:kr104). /etc/locale.conf stays as it is, per Omarchy's i18n design.
  • There's no Japan/Korea timezone trigger like the China one. Picking English with Asia/Tokyo or Asia/Seoul keeps the installer in English.
  • The setup form's timezone filter placeholder is still English in Japanese and Korean. That string comes from Center Chinese progress text and translate the timezone filter for the kmscon installer omacom/omarchy#18602, and the i18n-sync workflow fills in its translations.

Verification

I built the ISO from this branch with omacom/omarchy#18602's branch and ran offline, encrypted installs in a VM:

  • Japanese: every installer screen was in Japanese, kmscon relaunched with jp/jp106, and the LUKS password typed in kmscon unlocked the disk at boot. The installed system booted into a Japanese desktop with ja_JP.UTF-8, a Fcitx group of keyboard-jp plus Mozc, and Hyprland on jp. Mozc turned nihongo into 日本語 offline.
  • Korean: every installer screen was in Korean. The installed system booted into a Korean desktop with ko_KR.UTF-8, kr:kr104 plus Hangul, and Right Alt switching to Hangul, which typed 한국어.
  • Chinese (regression): unchanged, through to a Chinese desktop.
  • Chinese, then Japanese: going back from the Chinese keyboard screen and picking Japanese with the US keyboard relaunched kmscon with Noto Sans Mono CJK JP (it kept SC before the fix), and the install finished in Japanese.
  • test/all passes. The new cases check that Japanese and Korean stay in English on the console, and that kana and Hangul count as two columns.

Screenshots

From offline, encrypted installs of the ISO built from this branch.

Japanese

Language list on the console: Japanese under its English name

Keyboard step in kmscon, Japanese preselected

Timezone, Asia/Tokyo preselected offline

Summary table

Wipe and encryption confirmation

Finish and reboot

Installed system: Japanese desktop

Installed defaults: language, Mozc, jp layout

Mozc composing 日本語

Korean

Language list on the console

Keyboard step in kmscon

Summary table

Wipe and encryption confirmation

Progress tip, centered

Finish and reboot

Installed system: Korean desktop

Installed defaults and Hangul composing 한국어

Chinese (regression)

Summary Progress Desktop
Chinese summary Chinese progress Chinese desktop

— Yunjie's automation bot

- ✨ picking Simplified Chinese, or a China timezone, hands the gum TUI to kmscon before the disk step
- 🌐 add the zh-CN catalog and translate the disk, verify and finish messages
- 📦 ship kmscon and only the Noto CJK Regular TTC on x86_64
- 🐛 languages the console cannot draw fall back to English instead of boxes
- ⏪ keep the English console, with the chosen keymap loaded, when kmscon fails to start
- ⌨️ give kmscon the XKB layout, model and options the boot keymap types with
- 🐛 a keyboard change in a retry after an abort returned to the shell instead of relaunching kmscon with the new layout
- ✨ kmscon already carries CJK, so catalogs are all Japanese and Korean lacked
- ✅ cover both staying English on the console, and kana and Hangul widths
- ✨ Japanese read Simplified Chinese glyphs; the bundled collection has every form
@xdanger xdanger self-assigned this Nov 16, 2026
@xdanger
xdanger requested a balanced review from Copilot November 16, 2026 23:32
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T00:02:20.223326Z ff80271 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Switching from Chinese to Japanese without changing the keyboard leaves kmscon using Chinese Han glyphs because language-dependent font changes do not trigger a relaunch.

No open issues 🎉

What changed in this PR

Extends the existing kmscon installer localization to Japanese and Korean, reusing the bundled CJK font collection.

Changes:

  • Adds Japanese and Korean installer catalogs.
  • Selects language-specific CJK font families at kmscon startup.
  • Expands console-fallback and display-width tests and updates the documentation.
File Description
test/​unit/​test_installer_i18n.py Adds Japanese and Korean fallback and display-width checks.
README.md Documents expanded language support and localized Han glyphs.
configs/​airootfs/​usr/​share/​omarchy-iso/​i18n/​ko.json Adds Korean installer translations.
configs/​airootfs/​usr/​share/​omarchy-iso/​i18n/​ja.json Adds Japanese installer translations.
configs/​airootfs/​usr/​local/​bin/​omarchy-iso-kmscon Selects the CJK font family from the saved language.

Review effort: Balanced

- 🐛 going back from Chinese to Japanese kept Chinese glyphs when the layout stayed the same
- ✅ cover the font family each language gets
@xdanger
xdanger changed the base branch from feat/kmscon-cjk-installer to quattro November 16, 2026 23:58
- 🔧 the base predates leaving hp-omnibook-3-audio and the Surface address package out of x86_64 builds
@xdanger

xdanger commented Nov 17, 2026

Copy link
Copy Markdown
Owner Author

aarch64 install tests: local evidence (nested KVM)

The fork's aarch64 jobs fail because its Namespace arm64 runner has no /dev/kvm (chmod: cannot access '/dev/kvm'), so I ran them locally instead: on an Apple M5 Max, in a Lima VM with nested KVM (vz, Ubuntu 24.04.5, 12 vCPU / 48 GiB). This is local evidence, not a CI run.

Commit ff80271, with the workflow's own commands:

Step Command Result Time
Build ./bin/omarchy-iso-make --arch aarch64 --edge --no-boot-offer ok, 7.8 GB ISO 576 s
Install ./test/arm64-container ./test/arm64-install release/*.iso … pass, 9/9 checks 121 s job (73 s install, reboot and checks)
Live boot ./test/arm64-container ./test/arm64-live-boot release/*.iso … pass, installer up after 16 s 48 s
N1x install PLATFORM=aarch64-n1x ./test/arm64-container ./test/arm64-install … pass, 12/12 checks 116 s job (72 s install, reboot and checks)

Checks passed on both installs: the system reaches running, no unit failed, Hyprland is running, the requested kernel runs, sudo works, it booted through Limine's UKI, the Omarchy runtime is installed, Node is handled correctly for aarch64, and packages come only from Omarchy's mirror. The N1x install also passed these: the detector names it aarch64-n1x, the installer took the n1x default set, and the NVIDIA module is built for the running kernel.

Note: on Ubuntu 26.10 the same container fails with qemu:cpus_kick_thread: Permission denied, because Docker's AppArmor profile blocks signals within the container. Ubuntu 24.04 does not have this problem.

Live ISO installer Install in progress
live progress
Installed, first boot N1x installed, first boot
installed n1x

— Yunjie's automation bot

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Install test failure

x86_64 vs quattro aarch64 vs quattro
Result ✅ passed ❌ failure
Build the ISO 382.0 s – 1618.0 s –
Install 26.8 s – – –
First boot 9.2 s – – –
Everyday boot 8.9 s – – –

Boots are loader, kernel and userspace, without the VM's firmware.

Install phases, x86_64
Phase This PR quattro
Preparing live environment 1.3 s –
Preparing install target 11.1 s –
Installing Arch + Omarchy 9.9 s –
Configuring hibernation 0.3 s –
Configuring system 2.1 s –
Staging provisioning 0 s –
Finalizing boot and user 1.7 s –
Configuring login 0.1 s –
Configuring SSH access 0.2 s –
Configuring Tailscale 0 s –
Configuring DNS resolver 0 s –
Validating boot setup 0 s –
Creating factory snapshot 0.1 s –

Run · d68d93e

@xdanger

xdanger commented Nov 17, 2026

Copy link
Copy Markdown
Owner Author

aarch64 install tests: second local run (QEMU + HVF, no nested KVM)

An independent rerun of the fork's three aarch64 jobs for commit ff80271. This time they ran directly on macOS with QEMU 11.1.3 + HVF on an Apple M2 Ultra (macOS 27.2.1), which has no nested virtualization. This is local evidence, not a CI run.

Step Command Result Time
Build ./bin/omarchy-iso-make --arch aarch64 --edge --no-boot-offer (OrbStack docker, the workflow's Arch Linux ARM image) ok, 7.9 GB ISO ~8 min
Install ACCEL=hvf ./test/arm64-install release/*.iso … pass, 9/9 checks installed, rebooted and checked in 47 s
Live boot ACCEL=hvf ./test/arm64-live-boot release/*.iso … pass login prompt after 11 s
N1x install ACCEL=hvf PLATFORM=aarch64-n1x ./test/arm64-install … pass, 12/12 checks (detector says aarch64-n1x, NVIDIA module built for the running kernel) 57 s

Installed system: omarchy-dev 4.0.0.r7969.g459b90c-1, kernel 7.3.0-72-omarchy, mirror arm-mirror.omarchy.org.

How this run differs from CI (only in the local, uncommitted test-script patch):

  • -accel hvf instead of kvm, run on the macOS host rather than in test/arm64-container.
  • The UEFI firmware is Homebrew's edk2-aarch64-code.fd (edk2-stable202408). Arch's edk2-aarch64 202608, the one CI uses, hangs at "Start boot option" under HVF on M2, with every vCPU in its WFI idle loop. Under KVM it is fine.
  • The N1x option ROM was built with test/arm64-n1x/make-rom in the same Arch Linux ARM image.
Live ISO Installing Installed N1x installed
live progress installed n1x
Checks (install)
  13 s: 4% Tip: Super + Space opens the Onarchy menu for apps, settings, and more 
  37 s: Start boot option 
installed_system_seconds=47
ok - the system reaches running or degraded
ok - no unit failed
ok - the desktop is up: Hyprland is running
ok - it runs the kernel it was told to install
ok - the user can use sudo
ok - it booted through Limine's unified kernel image
ok - the Omarchy runtime is installed
ok - Node waits for its first use, or came from the ISO for this architecture
ok - packages come from Omarchy's mirror and nowhere else
arm64-install: installed, rebooted and checked in 47 s
Checks (N1x)
  13 s: 4% Tip: Super + Space opens the Onarchy menu for apps, settings, and more 
  34 s: Installed Onarchy in @m 16s You can nou remove the install medium 
installed_system_seconds=57
ok - the system reaches running or degraded
ok - no unit failed
ok - the desktop is up: Hyprland is running
ok - it runs the kernel it was told to install
ok - the user can use sudo
ok - it booted through Limine's unified kernel image
ok - the Omarchy runtime is installed
ok - Node waits for its first use, or came from the ISO for this architecture
ok - packages come from Omarchy's mirror and nowhere else
ok - Omarchy's detector names it aarch64-n1x (it says aarch64-n1x)
ok - the installer took the aarch64-n1x default set
ok - the NVIDIA module is built for the running kernel
arm64-install: installed, rebooted and checked in 57 s

omarchybot and others added 4 commits November 21, 2026 09:27
English with a China timezone switched the installer to Chinese after the summary had shown and confirmed English. That language is also what the installed system gets, so the desktop came up in Chinese without a Chinese input method, and the disk-wipe confirmation appeared in a language the user had not chosen. It also ran after Ctrl+C had armed preparing the machine for another owner, carrying the next owner's install into Chinese. A timezone says where someone is, not what they read; Chinese is one pick on the first screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	README.md
#	test/unit/test_installer_i18n.py
)

* ✨ feat(installer): draw Chinese in kmscon with a CJK font

- ✨ picking Simplified Chinese, or a China timezone, hands the gum TUI to kmscon before the disk step
- 🌐 add the zh-CN catalog and translate the disk, verify and finish messages
- 📦 ship kmscon and only the Noto CJK Regular TTC on x86_64
- 🐛 languages the console cannot draw fall back to English instead of boxes
- ⏪ keep the English console, with the chosen keymap loaded, when kmscon fails to start
- ⌨️ give kmscon the XKB layout, model and options the boot keymap types with

* 📝 docs(readme): explain the kmscon path for CJK translations

* 🐛 fix(installer): relaunch kmscon from the retry shell

- 🐛 a keyboard change in a retry after an abort returned to the shell instead of relaunching kmscon with the new layout

* 🐛 fix(installer): keep the language the user picked

English with a China timezone switched the installer to Chinese after the summary had shown and confirmed English. That language is also what the installed system gets, so the desktop came up in Chinese without a Chinese input method, and the disk-wipe confirmation appeared in a language the user had not chosen. It also ran after Ctrl+C had armed preparing the machine for another owner, carrying the next owner's install into Chinese. A timezone says where someone is, not what they read; Chinese is one pick on the first screen.

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

---------

Co-authored-by: Omarchybot <317366263+omarchybot@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@xdanger

xdanger commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Merged upstream in omacom#461, so closing this fork PR.

— Yunjie's automation bot

@xdanger xdanger closed this Nov 25, 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.

3 participants