/srv/irclogs.ubuntu.com/2009/02/17/#ubuntu-installer.txt

=== xivulon_ is now known as xivulon
CIA-3user-setup: cjwatson * r154 ubuntu/debian/changelog: releasing version 1.23ubuntu1112:30
CIA-3tasksel: cjwatson * r1392 ubuntu/ (9 files in 4 dirs):12:44
CIA-3tasksel: Offer manual package selection via aptitude if the cdebconf terminal12:44
CIA-3tasksel: plugin is available (LP: #21570).12:44
CIA-3ubiquity: evand * r3032 ubiquity/ (4 files in 3 dirs): Move the resize functionality into the segmented bar widget.14:21
CIA-3ubiquity: evand * r3033 ubiquity/ubiquity/segmented_bar.py:14:41
CIA-3ubiquity: Unround the corners of the segmented bars on the automatic partitioning page.14:41
CIA-3ubiquity: Show the size of each partition when resizing.14:41
CIA-3tasksel: cjwatson * r1393 ubuntu/tasksel.pl: fix manual package selection: use --schedule-only to mark packages, then plain aptitude (without "--visual-preview install") to display the UI14:48
CIA-3ubiquity: evand * r3034 ubiquity/ (debian/changelog scripts/install.py):15:04
CIA-3ubiquity: Copy the Distribution Channel Descriptor (DCD) file into the target15:04
CIA-3ubiquity: filesystem if it exists in /cdrom/.disk/.15:04
shtylmanwhen building packages...shouldn't template sorting happen only if template files change? or are the sorts not stored?15:21
evandmpt: Ignoring the poorly drawn resize handle (I'll fix that in a bit), do you have any comments on this cut of the resize widget integration: http://people.ubuntu.com/~evand/tmp/ubiquity-new-resize.png .  We can now make those options below say whatever we want, by the way.15:26
evandcjwatson: I'm equally keen to hear any comments you may have as well.15:28
mptevand, yay for square corners!15:28
evand:)15:28
shtylmanevand: I pulled your latest changes and the installer failed to draw the after bar for me15:29
mptI was going to ask "what type of FS does the black section represent", then I realized that's the resize handle...15:29
evandshtylman: interesting.  I'll poke at it and see if I can reproduce the bug.15:29
evandyeah, I need to actually draw something resembling one there, but I wanted to get the fundamentals down first.15:30
mptevand, currently the text for the first chart's legend is closer to the second chart than it is to the first chart15:30
shtylmanevand: gtk_ui:3019, assertion width >= -1 failed self.new_os.set_siz_request(pixels, -1)15:30
mptevand, why does the "100%" not have an accompanying size, while the other percentages do?15:31
evandmpt: I'd need to add code to calculate it, whereas we get it for free with the partitions that are being resized.  But I can do that quite easily.15:32
* evand makes a note15:32
evandshtylman: bzr pull again?15:32
mptIt would be nice if "Before:" and "After:" were centered with the actual bars, ignoring their legends, but that's probably really difficult15:33
shtylmanevand: on mpt's note, I wanted more fine grained partition info in the before bar, so what I did for the kde side (currently) was to regain priv and ask parted server for a disk list, store that and drop privs...all in the set_autoparti...15:33
shtylmanmpt: centering with the bars is a problem for small partitions15:34
evandshtylman: indeed, that's effectively what I just made a note to do.15:34
evandmpt: indeed, but I can take a shot at it15:34
mptshtylman, in what way?15:34
mpt(I mean the "Before:" and "After:" labels vertically centered, not the legend bits horizontally centered)15:35
shtylmanops...sorry completely read that wrong15:35
evand(15:35
evandwhoops15:35
shtylman*oops15:35
shtylmanyea...by bad15:35
evand(I've also made a note to better space between the two widgets)15:35
shtylmanare we thinking that square ends are better than rounded?15:36
mptshtylman, mainly because it's more accurate when the first/last partition is small, and partly because it makes it look less like iTunes15:37
shtylmanhahaha15:37
mpt(the texture is still a pixel-precise iTunes ripoff, but one step at a time)15:37
evand:)15:38
shtylman(sulks...as he changes the kde one back to square)15:38
mpt(and so is the reflection)15:38
mpt(and so is the legend)15:38
shtylmanbut it cools cool :)15:39
shtylmanand thats what counts!15:39
mpt"How do you want to partition the disk?" is still a moderately loaded question15:40
evandmpt: What would you suggest?15:40
evandand on that, does "Use entire disk" and "Resize a partition above and use the freed space" sound ok?15:41
mptevand, probably nothing you'd have time to implement before feature freeze15:41
mptI think a good intro line would be of the form15:41
shtylmanevand: I have spmehow messed up my branch regarding the debian/changelog...how do I just tell bzr to use the one from the main branch?15:41
shtylmanand throw away mine?15:42
mpt    The disk [SCSI1 (4.3 GB ATA) :^] is empty.15:42
mpt    The disk [SCSI1 (4.3 GB ATA) :^] has Windows XP on it.15:42
mpt    The disk [SCSI1 (4.3 GB ATA) :^] has two operating systems on it.15:42
mptetc15:42
evandshtylman: assuming it's complaining about a conflict, I would copy the main branch copy over top and say bzr resolve.15:42
evandmpt: is that a drop down box?15:43
shtylmanevand: ok, also, you said 'pull' earlier, but I looked at the main branch and I have the latest...do you have a separate branch?15:43
mptevand, yes if there are multiple eligible disks for installation, otherwise just plain text15:43
mpt(or even just "This computer", if there's only one eligible disk)15:44
mpt    This computer has Windows Vista on it.15:45
mpt    [                             Windows Vista (120 GB)                             ]15:46
shtylmanevand: ok, I ran it again (and on my local version it seemed to work..but one problem I found was that it doesn't actually limit itself to that partition15:46
evandmpt: perhaps we should pass back and forth pieces of paper :)15:46
shtylmanI have a disk I am using to test the bars and it has a small ext3 (8bg) at the head15:46
shtylmanabout 40gb free space15:46
shtylmanand 2gb swap at end15:47
evandshtylman: indeed, I noticed that a few minutes ago and will need to fix it.15:47
shtylmanand when I click the resize above option, it makes a slider over the whole disk15:47
shtylman(k)15:47
shtylmanalso...another note...I think something usefull would be to have the 'use largest free space' option actually show which free space will be used15:47
shtylmanversus being 100% for the whole bar15:48
shtylmanand on a final note: for the manual option...I hide the after bar altogether15:48
evandshtylman: That's a bug15:48
mptevand, katkin might demand to read each of them first15:48
evandor rather, could be considered one15:48
shtylmangotcha15:49
mptevand, I'm disappointed I didn't get time to spend on this a couple of weeks ago15:49
evandmpt: No worries, I am well aware of how busy you are with other things15:49
mptevand, does "Use entire disk" disable the resize handles?15:50
evandyes, and adds a "this will permanently delete Windows XP" message to the side with a warning icon15:51
mptevand, I think the "After:" chart would therefore make more sense below the radio buttons than above.15:52
evandmpt: ah, good call15:52
evandI need to figure out what I am going to do to decouple the labels from the bars (the descriptions of each partition, Ubuntu Jaunty 9.04 (development release) for example, can often make the bar extend beyond the allocated space for it.  I was going to leave just the colored boxes and sizes and move matching colored boxes and labels into a chart to the right of the options, but that would make things quite crowded and all over the place16:01
evandby all over the place I mean you'd be looking at sources of information to the top, bottom, right, and center.16:02
shtylmanwhy do you want to decouple them?16:02
shtylmanseems like they go nicely under that bar...?16:02
evandthey force the size of the partition bars to grow beyond the allocated space16:02
evandforcing us to stuff the partition bar in a scroll window when that happens16:03
shtylmanwhen you get more labels? or more text?16:03
evandwhich can be quite ugly16:03
shtylmanahh16:03
evandwell, both16:03
evandbut more often more text16:03
evandthough some people do have systems with an infinitely large number of partitions.  Damn extended partitions.16:03
evandWhy would anyone need more than four? :)16:04
mptI overflowed with as few as four, iirc16:04
mpthttp://launchpadlibrarian.net/18799517/screenshot.png16:05
evandindeed :)16:05
shtylmanwow16:06
mptLooking at that again, I see half my problem was tiny scraps of free space between the partitions16:06
shtylmanwhat about hover labels?16:07
shtylmanwhen you hover over the partition?16:07
mptor labels inside the sections that are drawn fully if there is room, or completed on hover if there isn't room16:08
mptlike in Netscape 4 Mail for Mac! (no, really)16:08
evandhrm, like the resize widget used to be?16:08
shtylmanyea...something like that16:09
evandmpt: do you have a screenshot of this by any chance?16:09
mptevand, no, but I'll sketch it for you now16:10
evandmpt: much appreciated16:10
* mpt hands over the sketch and sadly returns to notification bubbles :-)16:20
evandhaha16:20
CIA-3tasksel: cjwatson * r1394 ubuntu/disconnect: pass some environment variables through to disconnected aptitude17:06
CIA-3tasksel: cjwatson * r1395 ubuntu/debian/changelog: releasing version 2.73ubuntu1417:09
CIA-3ubiquity: evand * r3035 ubiquity/ (3 files in 3 dirs):17:32
CIA-3ubiquity: Disable the encrypted home option. This cannot be considered secure17:32
CIA-3ubiquity: without encrypted swap. The option can still be enabled by preseeding17:32
CIA-3ubiquity: it.17:32
CIA-3partman-auto-lvm: cjwatson * r211 ubuntu/debian/ (65 files in 2 dirs): Remove "Please try again" from templates, per Christian Perrier.17:33
CIA-3installation-guide: cjwatson * r447 ubuntu/ (debian/changelog en/appendix/preseed.xml): Document partman-auto-lvm/guided_size.17:37
cr3is it known that the current image has dependency problems: libart2.24-cil: Conflicts: libart2.0-cil but 2.20.1-1ubuntu1 is to be installed19:06
cjwatsonit's been mentioned, but it isn't a topic for this channel19:28
shtylmanhow exactly should the 'resize partition above and use freed space' option work?22:11
shtylmanlets say I have 60gb drive22:11
shtylmanfirst 8gb are ext322:11
shtylmanthen 50gb of free space22:11
shtylmanand then swap22:11
shtylmanif the user picks resize...does that mean it will allow them to scale down the ext3 partition and use whatever is there plus the free space partition since that one immediately follows it?22:12
cjwatsonif you have 50gb of free space, it won't bother offering the resize option in the first place22:33
cjwatsonbut let's say the amount of free space is smaller22:33
cjwatsonin that case it would resize down the ext3 partition, and then there would be a single big block of free space after it, which it would use for guided partitioning22:34
cjwatsonthere's no such thing as two contiguous blocks of free space - free space is just the absence of a partition, and doesn't have a real existence itself in the partition table22:35
cjwatsoni.e. no such thing as a "free space partition", really, even though partman presents free space in the same kind of way as it presents partitions for the sake of UI convenience22:35
cjwatsonshtylman: ^-22:35
kirklandcjwatson: it occurred to me ...22:46
kirklandcjwatson: while highly inadvisable, it's trivially easy to lock yourself out of a system where you use encrypted-home with 'sudo apt-get remove ecryptfs-utils'22:47
kirklandcjwatson: what do we do with other shoot-yourself-in-the-foot packages like this?22:47
cjwatsonI have a hard time getting worried about that. There are lots of such cases22:47
kirklandcjwatson: okay, cool :-)22:47
kirklandcjwatson: good enough for me22:47
superm1can they be marked 'essential'?22:47
cjwatsonabsolutely not.22:47
kirklandsuperm1: well, it's only essential if you want encrypted home22:48
cjwatsonecryptfs-utils ain't essential22:48
kirklandwhich is not everyway22:48
kirkland*everywhere*22:48
superm1i dont think i conveyed that right.  if they're installed can they be reported as essential, but not installed by default of course22:48
cjwatson'sudo apt-get remove gdm' breaks the system as far as a user who has no idea how to use the console is concerned, but we don't prevent people from doing that22:48
cjwatsonsuperm1: no, there is no mechanism for that at the moment22:48
superm1ah okay22:49
cjwatsonif we wanted to do this, then yes that's the sort of way one would need to fix it22:49
cjwatsonbut there is no existing infrastructure22:49
cjwatsonthe closest we have is that apt has a special-case hack to complain if you try to remove apt22:49
cjwatson  * I cannot self-terminate. Closes: #7492822:49
kirklandcjwatson: :-)  fair enough.  seems i'm not the only package in this situation22:50
cjwatsonkirkland: actually, there might be one ugly way to prevent it, although it might leave apt rather dazed nd confused22:50
cjwatsonand22:50
cjwatsonkirkland: make 'prerm remove' check whether ecryptfs is actually in use, and if so bail out with an error message22:51
cjwatsonI vaguely recall that there's some precedent for that22:51
kirklandcjwatson: i think i might just wait until the first moron does this crazy thing :-)22:52
cjwatsonah yes22:52
cjwatsonsudo.prerm22:52
cjwatsonI think it would be a reasonable check for ecryptfs-utils.prerm, although you might want to make sure that apt ends up in a sane state afterwards (i.e. ecryptfs-utils still installed)22:53
cjwatsonand have a look at sudo.prerm which has an override switch in case you really know what you're doing22:53
cjwatsonmaybe we should write that trick down somewhere :)22:54
cjwatsonI remember discussing it with pitti at the time, but it was years ago and took a while to page back in from backing store as it were22:54
* TheMuso can't help but think this *COULD* be useful for dmraid.22:55
StevenKI think exit 1 in the prerm will make dpkg throw up it's tentacles and go "Well *fine*!"22:55
TheMusobut then again, there are many other packages that are similar22:55
TheMusoas has already been stated.22:55
cjwatsonthe Debian Policy Manual says that if prerm remove fails then dpkg will leave the package in either failed-config or installed state22:55
cjwatsonit is somewhat confusingly worded and I might try to get it made more definite22:56
StevenKI was thinking it was more likely the former22:56
cjwatson(since I appear to be a Debian policy editor now)22:56
cjwatsoninstalled would make more sense to me personally, but this is why I was recommending checking :)22:56
cjwatsonhow about we just test this22:57
StevenKRight. Define in policy an exit code for the prerm that makes dpkg say "Oh, okay, I have just undone everything"22:57
cjwatsonhuh? no22:58
cjwatsondpkg doesn't in general distinguish exit codes from maintainer scripts, and I don't think it should22:58
StevenKAh22:58
cjwatsonoh, blast, test-removing sudo takes out a bunch of other stuff22:58
persiaThe only issue with changing policy to require "Installed" rather than "Failed Config" is that all the prerms out there need to recover gracefully from failure (in that if they partially removed things those ought be restored),22:59
superm1that and then it leaves its status as "deinstall ok installed"22:59
cjwatsonah, I think I've interpreted what policy is saying23:00
cjwatsonpersia: that's true anyway.23:00
cjwatsonpolicy says that if 'prerm remove' fails, then 'postinst abort-remove' is called. If 'postinst abort-remove' fails, then the package is left in failed-config. Otherwise the package remains installed.23:00
persiacjwatson, In the sense that they are supposed to restore all the arrangements (e.g. put back alternatives, etc.)?23:00
cjwatsonpersia: yes. postinst abort-remove MUST do that.23:00
persiaOK.  This makes sense.23:01
cjwatsonsuperm1: the first field is desired state, so that's fine23:01
cjwatsonIan admitted to me once that it was a mistake to have that in /var/lib/dpkg/status along with the actual state - it was basically there for dselect23:02
cjwatsonkirkland: so, to summarise, exiting in 'prerm remove' is the right answer and you should do it.23:02
kirklandcjwatson: :-)  okay, i'll take care of it23:02
cjwatsonkirkland: you should do it as early as possible in 'prerm remove' before cleaning up anything else (if applicable). If you do it after something else, make sure that 'postinst abort-remove' undoes it.23:03
kirklandk23:03
cjwatsonIan said something relatively recently that I hadn't realised: the maintainer script calls are generally arranged so that you often don't need to check the first argument23:04
cjwatsoni.e. the transition from "prerm remove failed, rollback" to "installed" should involve basically the same code as the transition from "unpacked" to "installed"23:05
cjwatsonpersia: just to be clear, I wasn't suggesting a change in dpkg behaviour, only clearer documentation of it23:05
persiaRight.  I missed understanding of postinst abort-remove, and thought that the apparent indecision was due to the possibility of failure in prerm remove, rather than the possibility of failure when restoring things in postinst abort-remove.23:07
persiaClarification to indicate that the selection of "Installed" or "Failed-Config" depends on the return of postinst-abort-remove would probably be of benefit.23:07
cjwatsonon a second reading the language is precise, but it does take at least two readings :-)23:08

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