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.
This commit is contained in:
parent
ec210c768f
commit
daf03371dd
1 changed files with 5 additions and 0 deletions
|
|
@ -524,6 +524,11 @@ This will take 10-30 minutes.
|
||||||
Logs: /var/log/veilor-installer.log + /tmp/anaconda.log"
|
Logs: /var/log/veilor-installer.log + /tmp/anaconda.log"
|
||||||
sleep 1
|
sleep 1
|
||||||
# Hand off to anaconda. --kickstart runs unattended.
|
# 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
|
if anaconda --kickstart=/run/install/veilor-generated.ks; then
|
||||||
prompt_message "Install complete. System will reboot.
|
prompt_message "Install complete. System will reboot.
|
||||||
Remove the install media after shutdown."
|
Remove the install media after shutdown."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue