/srv/irclogs.ubuntu.com/2008/01/04/#ubuntu-installer.txt

michael_e_brown7.10 question: we need to have firstboot come up in Chinese for when we ship to a certain, nondisclosed, geographical area. Setting /etc/environment and /etc/defaults/locale seems to have no effect. Editing /etc/init.d/oem-config to source /etc/environment (to set LANG) seems to have no effect.17:41
BagOfMostlyWatermichael: i don't have experience w/this, but i'm willing to try. how are you doing the installations? are you using a custom cd? network install?18:10
evandmichael_e_brown: you may want to email Colin directly on this.  My guess would be that it will involve seeding languagechooser/language-name or debian-installer/locale, but having not written the OEM code, I'm not sure what the full proper solution is here.18:12
michael_e_brownevand, thanks. We tried setting debian-installer/locale, but that completely breaks our install19:17
twbmichael_e_brown: how so?19:31
michael_e_browntwb, fails partitioning19:34
twbAre you seeding the partitioning steps at all?19:34
michael_e_browntwb, I saw a note somewhere that the preseed text must match exactly the GUI text19:34
michael_e_browntwb, sort of... just a sec.19:34
michael_e_brownd-i partman-auto/init_automatically_partition \19:35
michael_e_brown      select Guided - use the largest continuous free space19:35
michael_e_brownd-i partman-auto/choose_recipe \19:35
michael_e_brown       select All files in one partition (recommended for new users)19:35
twbPlease use a pastebin19:35
michael_e_brownright. sorry. (thought 4 lines wouldnt be too objectionable...)19:35
twbHave you tried seeding just the locale, and not any of the partitioning stuff?19:35
michael_e_browntwb, didnt work last time I tried.19:35
twbOK.19:35
michael_e_brownbrought up the part screen.19:35
twbre paste, np. I see 4 lines and aren't sure if that's all, or if there are another 98 coming19:35
michael_e_brownhttp://pastebin.com/m758c0d2e19:37
michael_e_brown^--- the whole preseed file.19:37
michael_e_brownRequirement: we need firstboot to come up with chinese selected by default (and in chinese)19:37
twbYou're seeding it to en_US there19:37
michael_e_brownIf I change debian-installer/locale, the whole install breaks19:38
twbYou change it to zh_CN?19:38
michael_e_brownif I change it to zh_CN, it breaks at partitioning.19:38
twbOh yes, of course19:38
twbpartition messages are localized19:38
michael_e_brownSo, my idea was to just do install in english19:38
twbSo if you change the default locale, you need to change those strings to chinese19:38
michael_e_brown(as that happens in our factory, that is ok)19:38
michael_e_brownand then just change system language in a post-install script19:39
twbWell, you could do that instead.19:39
michael_e_brownbut that dont work, either.19:39
michael_e_brownfirstboot comes up in english19:39
michael_e_brownI changed /etc/environment and /etc/defaults/locale to zh_CN and still comes up in english19:39
twbSee this string: "Guided - use the largest continuous free space"19:39
twbYou need to change that to whatever the zh_CN locale uses19:40
twbSimilarly for "All files in one partition (recommended for new users)"19:40
twbOr try just commenting them out19:40
michael_e_brownproblem being that there are 4 different strings like that...19:40
twbSo change them all19:41
michael_e_browntwb, problem is that I dont know that would even fix firstboot19:41
twbFor your second idea, to change the locale in the late command, you seem to have forgotten to install the zh locale package19:41
twbmichael_e_brown: so TEST IT19:41
michael_e_brownd-i pkgsel/language-packs string en es fr de pt zh19:41
twbOh sorry19:41
twbI've never seen that seed before19:42
michael_e_browntwb, I've been sitting here all day testing it...19:42
michael_e_brownand now I'm asking for some more help19:42
twbYou said 06:41 <michael_e_brown> twb, problem is that I dont know that would even fix firstboot19:42
twbSo my suggestion is to find out19:42
michael_e_brownso: from what I can tell, changing the language only changes /etc/environment and /etc/defaults/locale19:43
BagOfMostlyWatermichael: have you tried configuring your locale entirely using debconf after an install, verifying that it works, and then dumping via debconf-get-selections to see what is required for preseeding?19:53
twbBagOfMostlyWater: that would discard the d-i seeds, wouldn't it?19:53
twbIIRC there's some other magic command for those19:54
michael_e_brownBagOfMostlyWater, that is a useful suggestion.19:55
michael_e_brownBagOfMostlyWater, I'm trying to reinstall now using spanish ( since I can at least speak that )19:55
michael_e_brownI want to see if doing the install in spanish will cause firstboot to come up in spanish19:56
BagOfMostlyWaterthats beyond me i'm afraid. i wonder where debconf-get-selections and debconf-get-selections --installer overlap.19:56
BagOfMostlyWaterby 'discard the d-i seeds' do you mean the preseeds wouldn't be owned by d-i?19:56
michael_e_brownthe main problem so far is that firstboot doesnt appear to honor the "normal" language selection in /etc19:56
twbmichael_e_brown: ah, I just assumed you spoke zh.20:01
michael_e_browntwb, no, I dont.20:01
michael_e_browntwb, which makes it exceedingly difficult to test20:01
twbThat makes sense now20:01
michael_e_brownso...21:31
michael_e_browndoing an install completely in spanish does not cause firstboot to come up in spanish21:32
michael_e_browndoh.21:32
michael_e_browncjwatson_, ping21:32
michael_e_browndid an install in spanish and firstboot still comes up in english21:33
michael_e_brownfunny:21:34
michael_e_browndid an install in spanish with spanish keyboard setting21:34
michael_e_brownand firstboot *does* keep that.21:34
michael_e_browntwb, doesnt look like your suggestion panned out. So, I am back to square one.21:46
evandmichael_e_brown: he's on vacation until Tuesday I think, thus my email suggestion.  If this is pressing I can try to figure out a solution over the weekend for you.21:58
michael_e_brownevand, it is not an emergency, but Tuesday is a ways off...21:59
michael_e_brownevand, looks to me like the code doesnt ever initialize the language setting until you click a language21:59
michael_e_brownevand, *just* finished a re-install so I can look at the firstboot code fresh21:59
michael_e_brownI'll send an email. I dont need you to work on the weekend on this.22:00
evandmichael_e_brown: ok, an email would be much appreciated, and I'll give it a shot on Monday then.  Enjoy your weekend.22:01
michael_e_browncomposing now... thx22:01
michael_e_brownevand, did you get my email? It bounced from cjwatson_'s address...22:38
evandmichael_e_brown: yes, I did and odd.  Perhaps trying cjwatson at ubuntu.com and colin.watson at canonical.com might get it through.22:57
evandmy understanding is that the nicknames carry over both domains, though, so I'm not sure why the address you used wouldn't work.22:58
michael_e_brownevand: http://paste.ubuntu-nl.org/50780/23:29
michael_e_brownevand, email to colin still not working --^23:29
michael_e_browncould you kindly forward?23:29
michael_e_brownleaving in a couple mins. have a good weekend.23:30
michael_e_brownevand, I also just got word that this is a bit more urgent, as we were supposed to exit devel today, but that is more my bad than your problem because I somehow missed the dates. :(23:37
* michael_e_brown isnt going home as soon as he thought...23:37

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!