/srv/irclogs.ubuntu.com/2011/01/09/#ubuntu-installer.txt

JemtHello :-)15:26
JemtCan 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:27
cjwatsonit's passed as debian-installer/language=en (etc.)15:36
cjwatsonor locale=pt_BR (etc.) if the selected locale code contains an underscore (only happens for Chinese and Portuguese)15:36
JemtWhere do I specify this? Not as kernel params, I suppose ?15:37
cjwatsonyes, as a kernel parameter15:37
JemtI see. I'll give it a try. Reporting back in a minute :)15:38
Jemtcjwatson: 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:40
JemtSo 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 automatically15:41
cjwatsonI know it doesn't, but nevertheless it's passed under the hood15:41
cjwatsonit ought to be possible to construct a system in GRUB 2 to append a variable to the command line15:42
JemtHm, 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:44
JemtActually the only difference is the root=DEVICE parameter15:45
JemtBut perhaps the language is simply not transfered if the parameter is detected15:45
cjwatsonit's done by gfxboot-theme-ubuntu - that doesn't support GRUB15:47
JemtI'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 needed15:49
cjwatsonoh, I thought you said you were using GRUB, sorry15:49
JemtNope :)15:49
JemtNo problem15:49
cjwatsonthe language parameter is interpreted by casper - it only works on live CDs15:50
cjwatsonit won't work on a hard disk install15:50
cjwatsonor a USB stick install that isn't a live USB stick15:50
JemtI see. Too bad - I really liked that I could change the language using the initial boot menu :)15:50
JemtI 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 language15:51
JanCyou could use that parameter in a boot script too I guess...15:52
JemtI could ?15:52
JemtDo you know what part of Casper is handling the language ? Perhaps I can port it to an UpStart job15:52
JanCkernel parameters are in /proc/cmdline15:53
JemtNifty, checking it out15:53
JemtSweet, it is. Fantastic15:54
cjwatsonscripts/casper-bottom/14locales15:56
JemtWould it be sufficient to set the locale to the selected language ?15:56
JemtThanks cjwatson. Checking the script15:56
cjwatsonI think you might have to edit /etc/default/locale15:57
JemtIn Initrd I suppose15:57
Jemtokay15:57
JemtI could properly just copy most of the script and have it run on boot :)16:00
JemtJanC: Unfortunately the language argument is not available in /proc/cmdline when booting a real Ubuntu installation using the boot menu on the Live CD16:38
JemtI just realized that now16:38
JemtBut 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?=dk16:41
JemtI wonder what's responsible for populating /proc/cmdline16:43
JanCthe kernel, I guess?16:44
JanCbased on what it gets from the bootloader16:44
JemtSo 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 stick16:45
JemtDoes that sound right ? Here is my isolinux configuration (boot entries): http://pastebin.com/63av29Va16:47
Jemt"label live" works fine - language from F2 Language List is used. "label liveusbboot" does not16:48
cjwatsonyou probably just aren't using gfxboot16:50
cjwatsonit's not an intrinsic part of isolinux ...16:50
cjwatsonI wouldn't expect gfxboot-theme-ubuntu to be used when booting an Ubuntu system ordinarily16:51
cjwatsonoh, but you have an F2 menu, ok, in that case you are using gfxboot16:51
cjwatsonit certainly does *not* check for the presence of boot=casper16:52
cjwatsonanyway, have to go out16:52
Jemtcjwatson: 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 required16:54

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