[15:26] <Jemt> Hello :-)
[15:27] <Jemt> Can someone tell me how the selected language is transfered from isolinux/gfxboot to Ubuntu? I would like to be able to boot Ubuntu from a USB stick using the Live CD. This already works, but the language selection is not transfered to the USB stick. So I have to change it before I log in instead.
[15:36] <cjwatson> it's passed as debian-installer/language=en (etc.)
[15:36] <cjwatson> or locale=pt_BR (etc.) if the selected locale code contains an underscore (only happens for Chinese and Portuguese)
[15:37] <Jemt> Where do I specify this? Not as kernel params, I suppose ?
[15:37] <cjwatson> yes, as a kernel parameter
[15:38] <Jemt> I see. I'll give it a try. Reporting back in a minute :)
[15:40] <Jemt> cjwatson: What puzzles me, is that the boot menu on the LIve CD does not display any of your suggested parameters. Also, I would need to be able to do something like this:  debian-installer/language=$(selected-language-from-boot-menu)
[15:41] <Jemt> So I don't think I can use any of your suggestions, unless I want to define multiple boot entries for the USB stick, one per language. This would be an odd behaviour, since you would already have selected a language through the F2 Language menu which pops up automatically
[15:41] <cjwatson> I know it doesn't, but nevertheless it's passed under the hood
[15:42] <cjwatson> it ought to be possible to construct a system in GRUB 2 to append a variable to the command line
[15:44] <Jemt> Hm, I'm a bit surprised that the language doesn't get passed to my USB stick "under the hood" then. My boot entry is not that different from the entry booting the CD. I supposed if this was implemented properly, I would also be able to pass the language to the USB stick somehow.
[15:45] <Jemt> Actually the only difference is the root=DEVICE parameter
[15:45] <Jemt> But perhaps the language is simply not transfered if the parameter is detected
[15:47] <cjwatson> it's done by gfxboot-theme-ubuntu - that doesn't support GRUB
[15:49] <Jemt> I'm no expert in this area, but as far as I know, GRUB is never in play. I boot the Live CD. Using Isolinux I boot the kernel and point it to the USB stick's root partition. GRUB is never needed
[15:49] <cjwatson> oh, I thought you said you were using GRUB, sorry
[15:49] <Jemt> Nope :)
[15:49] <Jemt> No problem
[15:50] <cjwatson> the language parameter is interpreted by casper - it only works on live CDs
[15:50] <cjwatson> it won't work on a hard disk install
[15:50] <cjwatson> or a USB stick install that isn't a live USB stick
[15:50] <Jemt> I see. Too bad - I really liked that I could change the language using the initial boot menu :)
[15:51] <Jemt> I only support two languages on the USB stick, so I suppose I'll try your suggestion, and simply create two boot entries - one for each language
[15:52] <JanC> you could use that parameter in a boot script too I guess...
[15:52] <Jemt> I could ?
[15:52] <Jemt> Do you know what part of Casper is handling the language ? Perhaps I can port it to an UpStart job
[15:53] <JanC> kernel parameters are in /proc/cmdline
[15:53] <Jemt> Nifty, checking it out
[15:54] <Jemt> Sweet, it is. Fantastic
[15:56] <cjwatson> scripts/casper-bottom/14locales
[15:56] <Jemt> Would it be sufficient to set the locale to the selected language ?
[15:56] <Jemt> Thanks cjwatson. Checking the script
[15:57] <cjwatson> I think you might have to edit /etc/default/locale
[15:57] <Jemt> In Initrd I suppose
[15:57] <Jemt> okay
[16:00] <Jemt> I could properly just copy most of the script and have it run on boot :)
[16:38] <Jemt> JanC: Unfortunately the language argument is not available in /proc/cmdline when booting a real Ubuntu installation using the boot menu on the Live CD
[16:38] <Jemt> I just realized that now
[16:41] <Jemt> But it looks just fine on the Live CD - exactly what I was hoping to find on the real installation:file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash -- debian-installer/language=da console-setup/layoutcode?=dk
[16:43] <Jemt> I wonder what's responsible for populating /proc/cmdline
[16:44] <JanC> the kernel, I guess?
[16:44] <JanC> based on what it gets from the bootloader
[16:45] <Jemt> So gfxboot only provides the language details to the kernel, if the boot entry contains this: boot=casper. Obviously I replaced that with root=/device, to have it boot Ubuntu on the USB stick
[16:47] <Jemt> Does that sound right ? Here is my isolinux configuration (boot entries): http://pastebin.com/63av29Va
[16:48] <Jemt> "label live" works fine - language from F2 Language List is used. "label liveusbboot" does not
[16:50] <cjwatson> you probably just aren't using gfxboot
[16:50] <cjwatson> it's not an intrinsic part of isolinux ...
[16:51] <cjwatson> I wouldn't expect gfxboot-theme-ubuntu to be used when booting an Ubuntu system ordinarily
[16:51] <cjwatson> oh, but you have an F2 menu, ok, in that case you are using gfxboot
[16:52] <cjwatson> it certainly does *not* check for the presence of boot=casper
[16:52] <cjwatson> anyway, have to go out
[16:54] <Jemt> cjwatson: Yes, it is isolinux with gfxboot - it's the ordinary Live CD which I have simply remastered. But thank you for checking whether boot=Casper was required