[15:26] Hello :-) [15:27] 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] it's passed as debian-installer/language=en (etc.) [15:36] or locale=pt_BR (etc.) if the selected locale code contains an underscore (only happens for Chinese and Portuguese) [15:37] Where do I specify this? Not as kernel params, I suppose ? [15:37] yes, as a kernel parameter [15:38] I see. I'll give it a try. Reporting back in a minute :) [15:40] 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] 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] I know it doesn't, but nevertheless it's passed under the hood [15:42] it ought to be possible to construct a system in GRUB 2 to append a variable to the command line [15:44] 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] Actually the only difference is the root=DEVICE parameter [15:45] But perhaps the language is simply not transfered if the parameter is detected [15:47] it's done by gfxboot-theme-ubuntu - that doesn't support GRUB [15:49] 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] oh, I thought you said you were using GRUB, sorry [15:49] Nope :) [15:49] No problem [15:50] the language parameter is interpreted by casper - it only works on live CDs [15:50] it won't work on a hard disk install [15:50] or a USB stick install that isn't a live USB stick [15:50] I see. Too bad - I really liked that I could change the language using the initial boot menu :) [15:51] 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] you could use that parameter in a boot script too I guess... [15:52] I could ? [15:52] Do you know what part of Casper is handling the language ? Perhaps I can port it to an UpStart job [15:53] kernel parameters are in /proc/cmdline [15:53] Nifty, checking it out [15:54] Sweet, it is. Fantastic [15:56] scripts/casper-bottom/14locales [15:56] Would it be sufficient to set the locale to the selected language ? [15:56] Thanks cjwatson. Checking the script [15:57] I think you might have to edit /etc/default/locale [15:57] In Initrd I suppose [15:57] okay [16:00] I could properly just copy most of the script and have it run on boot :) [16:38] 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] I just realized that now [16:41] 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] I wonder what's responsible for populating /proc/cmdline [16:44] the kernel, I guess? [16:44] based on what it gets from the bootloader [16:45] 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] Does that sound right ? Here is my isolinux configuration (boot entries): http://pastebin.com/63av29Va [16:48] "label live" works fine - language from F2 Language List is used. "label liveusbboot" does not [16:50] you probably just aren't using gfxboot [16:50] it's not an intrinsic part of isolinux ... [16:51] I wouldn't expect gfxboot-theme-ubuntu to be used when booting an Ubuntu system ordinarily [16:51] oh, but you have an F2 menu, ok, in that case you are using gfxboot [16:52] it certainly does *not* check for the presence of boot=casper [16:52] anyway, have to go out [16:54] 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