Fix language change in initrd
March 31, 2012 —
BarryK
Wary/Racy RC1 testers reported a problem with setting the locale. The user selected a locale in QuickSetup, but forgot to tick the UTF-8 checkbox. The user opted to change the language in the initrd, which means that early boot messages are in the user's language.
However, it also means that the LANG variable, for example "de_DE" carries over from the initrd to the main filesystem.
When the user later reran QuickSetup and ticked the UTF-8 checkbox, upon reboot it was gone, no UTF-8.
The LANG variable has to be updated in the initrd, in this example to "de_DE.UTF-8". I have fixed the scripts 'quicksetup' and 'lang2initrd' to do this.
Woof commit:
http://bkhome.org/fossil/woof2.cgi/info/0c1a1fe45e
Comments
locale setting stickingUsername: pemasu
With racy built woof...commit [8974b31b2c] I got locale change sticking with PLANG removed from initrd.gz. When I had typed en_US.UTF-8 with builddistro it did change to that locale after reboot. Removing PLANG file enabled me to build recent dpup exprimo. So I repackaged initrd.gz without PLANG as fix. After removing it from initrd.gz....fi_FI.UTF-8 did stick after reboot. I used stock woof firstrun - quicksetup stuff and scripts. Will above fix help this situation, or is it still better to remove PLANG still...
Re locale sticking
Username: BarryK
"I haven't actually tested doing a build with choosing anything other than the default en_US. Also, I had only conceived of that mechanism in 3builddistro being used to choose a non-English locale. Ok, I think that I have fixed 3builddistro, will upload soon. It should be ok to specify "en_US.UTF-8" now.
Tags: woof