From daf03371dd91813078f78de49ac849f2e826f9f9 Mon Sep 17 00:00:00 2001 From: veilor-org Date: Sun, 3 May 2026 00:06:54 +0100 Subject: [PATCH] v0.5.5: export LANG before anaconda (fixes AnacondaError: 'LANG') Auto-install harness ran through gum installer cleanly but anaconda crashed at startup: File "/usr/lib64/python3.14/site-packages/pyanaconda/keyboard.py", line 152, in activate_keyboard sync_run_task(task_proxy) ... pyanaconda.modules.common.errors.general.AnacondaError: 'LANG' Anaconda's keyboard.activate_keyboard() reads $LANG and bombs if unset. TTY1 (where veilor-installer runs) inherits no locale by default; gum/whiptail don't set it. Fix: export LANG + LC_ALL = user's chosen locale (defaulting to en_GB.UTF-8) before invoking anaconda. Found via test/auto-install.sh end-to-end run. --- overlay/usr/local/bin/veilor-installer | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/overlay/usr/local/bin/veilor-installer b/overlay/usr/local/bin/veilor-installer index 9f75049..feab14c 100644 --- a/overlay/usr/local/bin/veilor-installer +++ b/overlay/usr/local/bin/veilor-installer @@ -524,6 +524,11 @@ This will take 10-30 minutes. Logs: /var/log/veilor-installer.log + /tmp/anaconda.log" sleep 1 # Hand off to anaconda. --kickstart runs unattended. + # LANG / LC_ALL must be set — anaconda's keyboard.activate_keyboard() + # raises AnacondaError: 'LANG' if missing. tty1 inherits no locale by + # default. Use the locale the user picked (or fall back to en_GB). + export LANG="${SEL_LOCALE:-en_GB.UTF-8}" + export LC_ALL="$LANG" if anaconda --kickstart=/run/install/veilor-generated.ks; then prompt_message "Install complete. System will reboot. Remove the install media after shutdown."