Bug 1127885

Summary: firstboot wizard does not switch language
Product: [openSUSE] openSUSE Distribution Reporter: Ludwig Nussel <lnussel>
Component: YaST2Assignee: YaST Team <yast-internal>
Status: RESOLVED INVALID QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P2 - High CC: lnussel, schubi
Version: Leap 15.1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://trello.com/c/Rll6A2r4
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Logs from SLE 15 SP1

Description Ludwig Nussel 2019-03-05 10:09:13 UTC
the firstboot wizard (see bug#1105792) does not actually switch to the language selected on the first screen. It stays English.
Comment 1 Stefan Schubert 2019-03-05 14:43:52 UTC
Ludwig, please also add the y2logs.
Comment 2 Lukas Ocilka 2019-03-07 13:34:04 UTC
Created attachment 799269 [details]
Logs from SLE 15 SP1

In fact, it did not change

- When I chose the language in UI
- In the next non-interactive screen either (installing some RPMs)

But it changed in

- Next interactive screen - "Welcome to ..."

Maybe it behaves similarly in Leap: does not change immediately, or even later
but it does "much later".
Comment 3 Lukas Ocilka 2019-03-11 12:58:11 UTC
Still waiting for Leap logs
Comment 4 Ludwig Nussel 2019-03-13 10:39:39 UTC
The system I tried this on was broken so I had to reinstall. This time everything worked. So no idea.
Comment 5 Lukas Ocilka 2019-03-14 08:05:57 UTC
I think that the "problem" is this:

During an installation, you can choose a different language and the installer
switches to that "immediately". In fact, it needs to download the language
from installation media, extend the inst-sys, switch the language and then
redraw the UI.

During firstboot we may have some languages installed, but mostly is just one
language - the one which the module starts with. When you switch the language,
firstboot needs to initialize repositories (if not done yet), run solver to 
select appropriate packages for the language, install those packages, switch
the language and then redraw the UI.

So what could potentially break?
- Repos were not available
- Firstboot requested some language, but packages were not available
- Solver found a conflict (and did not report it)
- Packager was not able to install those packages
- RPM error
- ...