/srv/irclogs.ubuntu.com/2018/10/12/#ubuntu-installer.txt

Laneyso localechooser/supported-locales10:38
Laneyis something supposed to update this?10:39
LaneyI'm noticing that (for example) xxx-en-gb packages are removed by ubiquity, because that contains "en_US.UTF-8" and then that's passed on to check-language-support -l.10:40
Laneyah debian-installer/locale too, but this is apparently not set in the en_GB case?10:48
Laneyhmm, it is, but something's overwriting it11:07
LaneyI guess11:08
Laneyxnox: want to help me? :-)11:09
Laneyhttps://paste.debian.net/104698711:10
Laneybetween line 13 and 24 it got changed back11:10
xnoxlocalechooser/supported-locales horum... i can't recall how it was done. either like at localechooser built-time or like at ubiquity built-time or like at langpack/language updates time12:20
xnoxi think i never learned how to do translations (and supported locales) updates in ubiquity.12:21
xnoxcause somebody else picked it up on the team, or like i rage quit working for the company, or some such.12:21
xnoxbetter luck with infinity maybe?!12:21
Laneysomething is making it get reverted back to en_US12:28
LaneyI don't yet understand all this debconf business12:29
xnoxLaney, all i know that it is `different` given the monkey-patch at ./d-i/patches/localechooser-post-base-installer.patch12:31
xnoxcause langpacks are done differently in ubiquity, but we still wanted to support the same d-i preseed questions or some such12:31
Laneyyeah I don't think it is localechooser itself12:32
Laneyit's fine after that finishes (line 13)12:32
LaneyI'm looking for something in ubiquity I think12:32
xnoxooooh. there mayhave been cdimage stuff as well, cause i think it writes out to disk as to what langauge packs are included on the cd.12:54
xnoxcause i think it we did (at one point) supported "re-rolling" the iso with more or less language packs without like rebuilding ubiquity.12:54
xnoxliterarly cannot remember any of those details.12:55
Laneyit's to do with the debconf database in install.py not seeing the updates that happen from the timezone page12:56
xnoxjuliank was working on those sort of things lately (frontend database locking stuff, but maybe that was dpkg/apt rather than debconf)12:59
Laneyok, I found a change that fixes it I think, not sure if it's right though13:05
* Laney fake news :(13:18
Laneyhttps://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/179757915:33
Laneycyphermox: xnox: maybe one of you knows the debconf stuff in ubiquity better than me and can tell me why that patch is wrong and/or how to do it better15:34
Laneywould be nice to fix in cosmic if we can15:34
xnoxi think we need juliank for this.15:34
Laney😱15:36
Laneythe cavalry15:36
cyphermoxyeah, there's only one instance of debconf somewhere at the beginning15:36
Laneythere's this parallel db thing15:36
LaneyI don't know what on earth that is15:37
cyphermoxno clue.15:37
cyphermoxwasn't this working before though?15:37
Laneypresumably it was at some time15:38
LaneyI didn't try previous releases tho15:38
cyphermoxI'm suspicious of console-setup15:38
Laneymaybe I have a old iso or something15:38
cyphermoxthat could have gone broken, as it tends to every release in some obscure way15:38
* Laney has wily15:38
Laneyactually, trusty15:38
cyphermoxLaney: in your bug, which part of the log says the installer forgot about the language? or is it not shown?15:41
cyphermoxoh, right, only install.py15:41
Laneycyphermox: where it says  Oct 12 15:48:42 ubuntu /install.py[9568]: keeping language packs for: en_US.UTF-815:41
Laneyit's not actually completely forgotten15:41
Laneye.g. I get en_GB locale15:41
cyphermoxyeah15:41
cyphermoxwell, I can see install.py having a separate, wrong debconf15:42
Laneyit does have that15:42
LaneyI ended up booting a xenial iso15:43
Laneyit has this bug15:43
Laneybit different though, in that one localechooser is run too late15:44
cyphermoxhold on15:46
cyphermoxis that when you pick language in the selector in ubiquity?15:47
cyphermoxor when you pick language from gfxboot?15:47
cyphermoxthe two might behave differently.15:47
cyphermox(it's wrong, but I think I see why they would behave differently)15:47
LaneyI did pick english at gfxboot, and then english and english(uk) and clicked on the UK in ubiquity15:48
cyphermoxwell, timezone won't change anything but timezone15:49
cyphermoxenglish in gfxboot I don't remember what it sets15:50
Laneyme neither15:50
Laneybut it does at least know that I chose en_GB after running localechooser15:50
cyphermoxyeah, but I wonder if the issue is that one of the code paths doesn't set debian-installer/locale somewhere it should be set15:51
Laneydb_get can see it right up until it can't any more (in install.py)15:54
cyphermoxok15:55
cyphermoxcan you check what pkgsel/language-packs is set to?15:55
Laneysure, at which point?15:56
cyphermoxuh, anywhere after picking language, and then around the end of the install (when install.py runs)16:00
cyphermoxI don't think it'd be much different between the two16:00
cyphermoxwait, no16:00
cyphermoxdon't bother16:00
cyphermoxI remember this is a preseeded thing on CD16:01
cyphermoxit's not?16:08
cyphermoxhrm16:08
Laneywhat's this?16:08
cyphermoxI expected pkgsel/language-packs to be preseeded to something16:09
cyphermoxbut I went to check all the way back to precise16:09
Laneythat codepath is not used in a regular iso install16:12
Laneyit's the localechooser/supported-locales one16:12
Laneysupplemented with debian-installer/locale which is what ubiquity decided you wanted16:12
Laney(that last one is the one that is buggily not set properly)16:14
cyphermoxwell, either one should be set to /something/16:18
Laneysupported-locales is en_US.UTF-8 for me16:18
cyphermoxok16:20
cyphermoxso maybe we screwed up localechooser?16:20
Laneyohhhh17:03
Laneyis this a race?17:03
Laneywe start installing in the background right?17:03
cyphermoxyeah18:15
cyphermoxbut like I said, the timezone doesn't really matter18:15
cyphermoxyou don't start install until after partitioning, which is after picking language18:15
cyphermox(but before picking keyboard)18:15
cyphermoxthat said, you did point out what matters is localchooser, which is run as you pick language, not when you pick keybaord18:15
cyphermox(and it's preseeded even earlier if you pick language at gfxboot)18:16
cyphermoxI think we should debug this further, add enought prints in the code to output what the debconf values are at the time install_misc.py runs18:17
cyphermoxLaney: could be racey18:42
cyphermoxlooks like I got fr_CA working first try18:42
Laneycyphermox: it takes the country you pick in the timezone step into account22:31
LaneyI think the fix would be basically to not start installing until after ubi-tiemzone22:31
Laneybut you have to do that weird debconf stop / start thing to make sure it is committed at that time afaics22:32
Laneywill test it a bit more and probably propose something over the weekend22:32

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