Repository navigation
Conversation
- 🐛 Accept `REGION=global` from the form defaults, so a deferred install from the global ISO enters a region whose timezone the owner picks, as docs/regions.md requires for Asia/Shanghai; media leaving no REGION keep the region the install wrote
- 🐛 Owner setup runs as a systemd service, so `OMARCHY_PATH` is a shell variable there; `omarchy-apply-pacman` died on it unbound and `region.sh` found no profile, leaving a settled region on the old mirrors and environment
[Medium impact] The PR appears safe to merge, with the previous test-coverage gap closed.
|
- ✅ Catch a regression of the `region.sh` half of the fix too, which left the session mirrors unwritten
|
Read the current diff, the first-boot region setup, and the region and pacman child scripts at 132c0c2. GPT-6 High in Codex classified this as a bug fix because the existing first-boot path does not pass OMARCHY_PATH to those children; deepseek-v4p1-flash (default effort), asked separately about the same revision, classified the combined change as an enhancement. It also adds support for REGION=global, which depends on the companion ISO change. The classification remains unsettled, so this is waiting on the maintainer to resolve how the combined change should be handled. No worker tests ran, and no classification or verification labels were added. |
What changes
docs/regions.mdsays a deferred install settles its region at first boot from the media'sREGIONand the owner's timezone, soAsia/Shanghaigivescn. Two gaps stopped that from happening:configure_regiononly accepted a two-letterREGION, so the global ISO had no way to say "global, unless the owner's timezone picks a region". It now also acceptsREGION=global. Media that leave noREGIONbehave as before.omarchy-apply-pacmandied withOMARCHY_PATH: unbound variableandinstall/config/region.shfound no profile. Owner setup runs as a systemd service, whereOMARCHY_PATHis a shell variable that children don't inherit, and|| truehid the failure. The marker, theme and launchers switched, but pacman stayed on.organd the session mirrors were never written. Both children now getOMARCHY_PATHexplicitly, asfinalize_useralready does. This affected China media too, whenever an owner's timezone moved the region (for example Hong Kong).Companion to omacom/omarchy-iso#241, which writes
REGION=<media region>to/etc/omarchy/form-defaultson deferred installs (globalon the standard ISO).Merge order: this PR first, then omarchy-iso#241. Either order is safe on its own: without #241 no media writes
REGION=global, and #241 without this PR leaves deferred installs global, as today. A deferred install from the standard ISO only enterscnonce both are in.It also merges cleanly with #19249 in either order: #19249 appends its browser-policy refresh after the pacman step in
configure_region, and that refresh now also runs for owners of global media who pick a China timezone.Verification
test/shell.d/install-language-test.sh: new cases forREGION=global(Shanghai and Urumqi givecn; UTC, New York, Hong Kong, Taipei and Macau stay global). Theomarchy-apply-pacmanandregion.shstubs now fail withoutOMARCHY_PATH, and the new cases callconfigure_regionwith it unexported, as owner setup does. These cases fail onquattroand pass with this branch.provision-owner-regdom-test.shpasses.--local-sourcefrom this branch merged with Add NetEase Cloud Music, Doubao, a WeChat key and Bing China to China installs #19249, plus omarchy-iso#241. A deferred ("prepare for another owner") install, then first-boot setup in 简体中文 with Asia/Shanghai:/etc/omarchy/form-defaults:REGION=global/etc/omarchy/region:cn[omarchy]and core listpkgs.omarchy.cnandmirror.omarchy.cnahead of.org/etc/environment.d/60-omarchy-region.confholds the China mirrorsOMARCHY_PATHfix, the same run set the marker, theme and launchers, but left pacman on.org, wrote no environment file, and loggedomarchy-apply-pacman: line 48: OMARCHY_PATH: unbound variable.Screenshots
No visible change: first-boot setup and its screens are unchanged. The installed result is shown in omarchy-iso#241.
— Yunjie's automation bot