/srv/irclogs.ubuntu.com/2009/05/15/#ubuntu-installer.txt

FireRabbitWhat code in Ubiquity causes it to auto-advance if all questions for a page are answered?00:48
FireRabbitI'm having trouble understanding the structure00:48
StevenKFireRabbit: It's called preseeding02:23
FireRabbitStevenK: Yes I know, I'm wondering what actually causes the UI to advance02:27
superm1FireRabbit, see ubiquity/ubiquity/debconffilter.py.  search for the reference to UBIQUITY_AUTOMATIC03:12
superm1and similar references in gtk_ui.py03:13
superm1in gtk_ui, the dbfilter gets started at the beginning of a page.  if all of the questions get answered by debconffilter, the page gets advanced03:15
superm1(more or less)03:15
xivulonhi davmor208:52
davmor2hello08:53
xivulonmissed part of the conversation yesterday, but followed up on the logs08:53
davmor2xivulon: didn't have time to get the logs last night in the end so I'm about to get them now08:53
xivulonso 'missing L', I think I didn't get that08:53
xivulonwas the error about formatting the swap file?08:54
davmor2there is xivuon and xivulon :)  one missing L08:54
xivulonah :)08:54
xivulonas for the swap that seems to be an old issue, due to fragmentation08:55
xivulonI believe that only happens on vfat these days08:55
xivulontry to defragment c:\ubuntu\disks\swap.disk with jkdefrag or similar before rebooting08:56
davmor2xivulon: will do08:57
=== dpm_ is now known as dpm
cjwatsonFireRabbit: it may be easier to think of it the other way round - the way it works is that the page is advanced *unless* an unanswered debconf question causes it to stop and wait for input09:58
evand1shtylman: Just a heads up, I imagine you'll want to subscribe to and mark yourself as participation essential for https://blueprints.edge.launchpad.net/ubuntu/+spec/kubuntu-karmic-ubiquity10:32
shtylmanevand1: thanks...will do :)16:06
superm1evand1, it looks like https://blueprints.edge.launchpad.net/sprints/uds-karmic?searchtext=ubiquity is a bit light as compared to last couple UDS'. are you having less ubiquity sessions, or just haven't registered more specs yet?16:39
evand1less sessions.  Desktop experience has been looking at ubiquity and I'm fearful that they'll give us more than enough to do in 9.1016:41
evand1but if you have something you want to cover / discuss, please feel free to register it and propose it16:41
cr3does the preseed support: d-i apt-setup/proposed boolean true16:42
cjwatsonyes16:56
FireRabbitsuperm1: cjwatson: I'll take a look when I get back into the office in about 45 mins. Basically I'm trying to figure out exactly what I need to preseed for each page. Other than timezone, I don't want any other pages to be displayed. I've managed to hide language and keyboard, but not the partition manager so far.17:00
FireRabbitalso, the language select comes back if ubiquity is canceled and then run a second time17:00
cr3what is the "mirror/suite"? if this is where I should specify the series, ie "karmic", how does this work if it's commented out by default?17:01
cjwatsoncr3: you shouldn't set mirror/suite at all; just use the installer matching the release you want to install17:02
cjwatsonit's only there to simplify code delta from Debian17:02
cr3cjwatson: excellent, thanks17:04
=== dpm is now known as dpm-afk
cjwatsonFireRabbit: the installation guide is probably the best reference - you need to preseed partman-auto/method and partman-auto/disk at minimum but there are a few others17:06
cjwatsonFireRabbit: https://help.ubuntu.com/9.04/installation-guide/i386/preseed-contents.html#preseed-partman17:06
superm1cjwatson, is that  "X configuration" still valid?  I thought the postinst for xserver-xorg didn't allow for most of those options in more current releases17:10
cjwatsonsuperm1: yeah, it's entirely possible some of it is obsolete, I haven't rechecked it in a while17:11
FireRabbitcjwatson: okay thanks17:14
FireRabbitalso I was wondering, what prevents the livecd 'ubuntu' user from being copied to the installed system if the entire fs is copied over?17:16
cjwatsonFireRabbit: we copy the read-only squashfs rather than the running live session - the 'ubuntu' user is added only at boot time, so isn't in the squashfs17:19
FireRabbitahh ok17:19
FireRabbitI saw the casper code for that but didnt put the pieces together, thanks17:20
FireRabbitcjwatson: do you know why the language page comes up the second time ubiquity is run? is that a bug?18:23
cjwatsonFireRabbit: it's very difficult to come up with a consistent set of semantics for what should happen when you rerun ubiquity in automated mode18:26
cjwatsonFireRabbit: I more or less reckon that behaviour on the second run is not very well-defined18:27
FireRabbitokay fair enough18:27
cjwatson(or even in non-automated mode, come to that ...)18:27
cjwatsonthere's a conflict between "this question is already answered, just use the answer" and "well, hey, the user ran ubiquity a second time, maybe there was a reason for that"18:27
cjwatsonthat's pretty much why automated mode exists, as an override to say "use all existing answers"18:28
FireRabbitok, in the case of what im doing it wont be possible to cancel ubiqutiy / re-run it.. i was just wondering because it was confusing while trying to test preseed options18:29
cjwatsonFireRabbit: when you rerun, are you using the --automatic option?18:52
FireRabbitcjwatson: yes18:52
cjwatsonok, just checking18:53
cjwatsonyes, I think it would involve less fighting to boot afresh each time, sorry18:53
FireRabbitokay that's good to know, thanks18:53
cjwatsonthat said, please do file a bug report about the fact that the language screen shows up again the second time18:54
FireRabbitokay18:54
cjwatsonit's probably due to the slightly odd way localechooser's innards work, and I'm not promising we can fix it easily, but it is a bug that it shows up like that in automatic mode18:54
FireRabbitit'll be good to have the behavor documented in launchpad at least, might save someone else some head banging :)18:56
cjwatsonfor those who read through all 700 bugs? :-)18:56
FireRabbitokay good point :)18:57
FireRabbitso i set 'd-i passwd/make-user boolean false' but its still showing the account setup page, do i need to specify blank values for all the other fields too?19:01
shtylmanevand1: https://code.launchpad.net/~shtylman/ubiquity/reorg <-- initial file reorganization, no install updates or source fixes...20:22
cjwatsonFireRabbit: it'll only allow passwd/make-user to be set to false if passwd/root-login is set to true; the installer doesn't like to create a system with no valid logins20:35
cjwatsonshtylman: I'd really rather that all that stuff weren't moved under ubuntu-installer/20:36
shtylmancjwatson: where would you recommend it to go? higher level directory?20:37
cjwatsonisn't the point of merging to try to get everything into common code?20:37
cjwatsonI don't think it should involve everything moving down a directory level ...20:37
shtylmanlib/ubuntu-installer is really the common codebase20:38
shtylmanI havn't thought too much about merging the base wizard files20:38
cjwatsonI would prefer the current ubiquity directory structure to be largely preserved20:38
cjwatsonpossibly with the top ubiquity directory renamed to lib20:39
cjwatsonand then oem-config's files to be interspersed20:39
shtylmanI see... the reason I did the ubuntu-installer move is because everything else seemed to be related to d-i20:39
shtylmanbut that could be my lack of understanding20:39
cjwatsonnot really20:39
cjwatsonbut in any case I'd rather not artificially separate things like that20:40
shtylmanoh and the oem-config dir under ubuntu-installer shouldn't be there20:40
cjwatsoneverything directly related to d-i is already reasonably well demarcated20:40
shtylmank20:40
shtylmansome of the directories I havn't cleaned up yet after moving things around..20:40
cjwatsonsorry, I know it's annoying, but I'd really prefer you started again without all this heavy directory reorganisation - just because it's going to make history very confusing20:41
shtylmanso you would prefer the doc, desktop, lib, and share directories to be one level higher?20:41
cjwatsonI'd prefer the existing directory structure20:42
shtylmancjwatson: oh..thats not a problem...I will do that20:42
shtylmancjwatson: yea...that would be like before...excpet I think I would move pixmaps/gui into shared20:42
shtylman*share20:42
cjwatsonI'm curious - why?20:42
shtylman(my thinking was it better represents where they lie on disk) ?20:43
shtylmanbuy maybe not..20:43
shtylman*but20:43
cjwatsonI know that's how the target filesystem is laid out, but usually it's better for the source tree to reflect development20:43
shtylmank20:43
cjwatsonit'd be pretty unusual to edit pixmaps and gui at the same time20:43
shtylmantrue20:43
cjwatsonthey're really just both in /usr/share due to the demands of the FHS - which are fine for a user filesystem, but ...20:43
cjwatsonby the way, when you're moving files around, you *have* to use 'bzr mv' - don't remove and add files when moving them20:44
cjwatsonif you remove/add, you sever history20:44
cjwatsonbzr log won't know how to track across that20:44
shtylmanalso...would lib/ubuntu-installer lib/ubiquity lib/oem-config be a good way to separate the codebases? I was thinking that the ubuntu-installer would be a new package with common code for both oem and ubiquity...?20:44
shtylmancjwatson: noted20:44
cjwatsonmost of the lib/*.py code is already pretty common to both, or could be made to be common without too much effort20:45
cjwatsonsome of lib/*.py should really be lib/frontend/gtk_ui/blah or something like that20:45
shtylmanright20:45
cjwatsonI don't want the name ubuntu-installer to exist at all - it's too confusing because people already sometimes refer to the Ubuntu branch of debian-installer like that (although I don't)20:46
cjwatsonubiquity-common would be a good package name for the common code, I think20:46
shtylmanthat gui separation I know about.. but you would prefer that the common code just be under /lib ? and let the install files place it correcrly?20:46
cjwatsonyes, I would, and the install files can continue to place it just where they do now20:46
shtylmanubiquity-common ... noted...20:46
cjwatsonthe components/frontend code are a bit harder20:47
shtylmanwould it not make sense to have a /usr/lib/ubiquity-common directory where the common code goes...instead of placing it in /usr/lib/ubiquity and /usr/lib/oem-config depending on which packge is installed?20:48
cjwatsonit makes the python package names nasty20:48
shtylmanI guess thats a tradeoff between adding another package or not...20:48
shtylmanI see20:48
cjwatsonalthough it doesn't reflect the history, I think nowadays we could regard oem-config as a sort of custom implementation using ubiquity code20:48
cjwatsonso the python package names could be ubiquity.debconffilter, ubiquity.frontend.gtk_ui, oem_config.frontend.gtk_ui20:49
shtylmancould they both be built on the same wizard base?20:49
cjwatsonubiquity has a much more distinctive identity anyway20:49
cjwatsonand then the whole thing could just go under /usr/lib/ubiquity/20:49
cjwatsonso we have /usr/lib/ubiquity/ubiquity/debconffilter.py, /usr/lib/ubiquity/ubiquity/frontend/gtk_ui.py, /usr/lib/ubiquity/oem_config/frontend/gtk_ui.py20:50
cjwatsonand then gradually merge common code from there20:50
shtylmanahh I see...are you saying to get rid of oem-config package alltogether? and have oem mode be a special runcase?20:50
cjwatsonwe'll still need the oem-config binary packages, I expect, although they can be built from the ubiquity source package20:50
cjwatsonhaving separate binary packages isn't really a maintenance burden - it's having to merge changes across different source packages that's a pain20:51
shtylmank...also...do we need the cut and paste stuff stuff?20:51
shtylmanthat seems very very jegacy20:51
shtylmanand is the only thing typing ubiquity to a specific architecture when binary packages are made20:51
shtylman*legacy20:51
cjwatsonand yes, it would probably eventually be possible to merge the basefrontend implementations, although not yet20:51
shtylmank20:52
cjwatsonsrc/cut-and-paste/e-map/ is still used in the UBIQUITY_OLD_TZMAP case, although we can probably kill that off in karmic20:53
cjwatsonit shouldn't be killed at the same time as the oem-config merge though - one thing at a time20:53
shtylmanwell...imma make another run at the re-org here soon with my new found knowledge :)20:53
cjwatsonsrc/cut-and-paste/gdm-signal/ can't easily die yet20:53
shtylmank20:53
cjwatson(that was new in jaunty and is what lets us reboot cleanly on GNOME)20:54
shtylmanI see20:54
cjwatsonit's a workaround for problems elsewhere20:54
cjwatsonthe files in oem-config/desktop/ can be moved into ubiquity/desktop/, with some care to merge the Makefile.am files properly20:54
cjwatsonoem-config/debian-installer-startup.d could just be moved to ubiquity's top level20:55
cjwatsonthe files in doc don't clash and can just be moved into ubiquity's doc directory20:55
cjwatsonapport can be merged likewise20:55
shtylmanmain-menu.d moved20:56
cjwatsoncompat is mostly easy but apt-install is tricky; there are two genuinely and necessarily different implementations there20:56
shtylmanoh..this one I had no clue on...the po files?20:56
cjwatsonthat'll take some care. those are based on the desktop directory20:58
cjwatsonyou can probably put the individual files together with msgcat to start with20:58
cjwatsoni.e. there should be a single po/ubiquity.pot that contains all the messages, same for all the languages20:58
shtylmank20:59
cjwatsononce you get to the point of being able to run configure, you can run 'make ubiquity.pot && make update-po' in po/, or something similar20:59
cjwatsonI recommend against editing the files manually unless and until you've read the gettext manual from cover to cover :-)20:59
shtylmanhaha... noted... will avoid....21:00
cjwatsonfor gui/, I think maybe ubiquity/ and oem-config/ subdirectories of each of glade and qt might make sense21:00
cjwatsonor glade and qt subdirectories of each of ubiquity and oem-config, it doesn't much matter21:00
cjwatsonfor m4/, you should just be able to use ubiquity's copy21:01
shtylmank....can glade be gtk? or does glade make more sense in the gtk world?21:01
shtylmanglade is the designer21:01
cjwatsonwell, the file extension is .glade and the xml top-level is <glade-interface> ...21:02
shtylmanheh k21:02
cjwatsonscripts/ is tricky, there are real clashes there21:02
cjwatsonmaybe move the oem-config ones into scripts/oem-config/ for now and we'll figure out what and how to merge later21:03
shtylmank21:03
cjwatsongenerally, my strong preference is to leave the ubiquity structure alone and tastefully merge the oem-config stuff around it - should mostly be possible although there are definitely a few quirks21:03
cjwatsonone obvious difference is that, when ubiquity is running stuff on the target system, it needs to chroot; oem-config is already in the target system21:04
shtylmanmakes sense... with the ubiquity structure, I will still section off the frontend stuff into the proper folder... like segmented bar and timezone stuff?21:04
cjwatsonso some parameterisation is needed, but it would be best to do that after the main body of the merge IMO21:04
shtylmank21:04
cjwatsonfrontend> I think so, but I recommend doing that in a separate commit21:05
shtylmank, so first move over the oem-config stuff21:05
shtylmanand then re-org ubiquity..21:05
cjwatsonother way round I think21:05
shtylmank21:05
cjwatsontry to keep it working at each step :)21:05
shtylmanwhere should I dump the oem-config frontends?21:05
cjwatsonit's easier when they're smaller21:05
shtylmank21:05
shtylmanahh I see, we already talked about it...21:06
cjwatsonlooks like just segmented_bar, timezone_map, and wrap_label that are essentially components of the gtk frontend21:06
shtylmanyea21:06
cjwatsoncomponent/frontend code that's genuinely oem-config-specific can probably go in a top-level oem-config directory with components and frontend subdirectories21:07
cjwatsonI do want to try to automakeify the whole thing at some point - people keep getting confused and trying to install it with ./configure && make && sudo make install and it's a bit embarrassing that it's halfway autotooled but only halfway21:07
cjwatsonbut not now :-)21:07
shtylmanheh21:08
shtylmanI would add make the template generation faster to that list :)21:08
FireRabbitcjwatson: ah... in this case i already have a user created, any way around it? actually it seems if i give it an existing username it fails silently..21:08
cjwatsonFireRabbit: yeah, that might be a plausible workaround. I can't think of any other way around it short of creating a dummy user21:09
cjwatsonshtylman: tricky to do anything much about unfortunately, there's quite a lot of po file data to munge around21:09
cjwatsonseveral sets of translations maintained in different trees21:10
shtylmancjwatson: true there... maybe caching? seems like it generates it every time... even with -nc .. maybe I do something wrong :(21:10
cjwatsonthere may be some make dependency bugs21:11
FireRabbitcjwatson: ok thanks21:11
cjwatsonthough that's odd because choose-mirror uses a build-stamp file21:11
cjwatsonwhich is kind of the great big hammer approach to make dependency problems21:11
cjwatson(crude and often wrong, but not in the direction that ought to cause repeated regeneration)21:12
cjwatsonas does localechooser21:12
cjwatsonanyway, I promised to go tidy the airing cupboard this evening :)21:12
shtylmanhahah :)21:13
shtylmancjwatson: I actually had to look that up :)21:14
shtylman" This term is more widely used in Britain"21:14
shtylmanhttp://www.wisegeek.com/what-is-an-airing-cupboard.htm <--- way more info than I wanted to know...21:15
cjwatsonwe called it a hotpress where I grew up, but the English look funny at you if you use that term *shrug*21:15
shtylmanheh21:16
sebas891hi folks,21:54
sebas891can someone confirm that is possible to install hardy with the installer of intrepid or jaunty?21:55
sebas891I'm doing network install using preseed.21:55
sebas891I'll be back :)22:26

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