diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-24 12:57:29 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-24 12:57:29 -0500 |
| commit | 249bb93b29ef471a6529d2d5bb96df87e1ac1a8a (patch) | |
| tree | 055130bd142df402c9ea45e0323fc0064370c9f3 /docs/prototypes/2026-07-02-desktop-settings-panel-prototype-1.html | |
| parent | c63a0626d3564c324f57cbbbb9eac340690dd830 (diff) | |
| download | archsetup-249bb93b29ef471a6529d2d5bb96df87e1ac1a8a.tar.gz archsetup-249bb93b29ef471a6529d2d5bb96df87e1ac1a8a.zip | |
fix(installer): derive the wireless regdom by pattern and retire two inert hooks
The regulatory domain came from a fixed offset, "${current_lang:3:2}", which is right only for a two-letter language code. validate_config accepts three-letter languages and glibc ships 75 of them, so ber_DZ.UTF-8 yielded "_D" and C yielded "". A garbage region matches no line in the regdom file, sed exits 0, and the || error_warn could never fire, so WiFi sat on the conservative "00" domain in silence.
locale_country matches the _CC group instead of counting characters, and set_wireless_regdom verifies the substitution actually landed. That second half is the part worth keeping: every sed -i in this installer shares the stance that a no-match is indistinguishable from success, and this is the one where the silence costs something.
switch_udev_hook_to_systemd now rewrites keymap and consolefont to sd-vconsole when it performs the swap. Both are busybox-only run_hook scripts, so a systemd initramfs installs them and never runs them, and this machine's own HOOKS line carries all three today. Cosmetic on a box that just boots, and not cosmetic on one asking for a passphrase with a non-US layout, which is exactly what sd-vconsole restores. The two collapse into one entry and an existing sd-vconsole is not duplicated.
Before building it I answered the question the task left open. This machine is KEYMAP=us with no encrypt hook, so no prompt, but the function runs on LUKS machines where there is one, and sd-vconsole ships with mkinitcpio.
364 unit tests, exit 0. Adds tests/installer-steps/test_wireless_regdom.py (16) and 7 sd-vconsole cases. Every guard proven by deleting it, including one whose first version passed with the guard gone because a later check caught the same case.
Diffstat (limited to 'docs/prototypes/2026-07-02-desktop-settings-panel-prototype-1.html')
0 files changed, 0 insertions, 0 deletions
