/srv/irclogs.ubuntu.com/2012/07/31/#ubuntu-installer.txt

brendandanyone know why there is a casper directory in the server images now09:46
brendand?09:46
cjwatsonbrendand: it's a buglet that it's called casper; but the server images now install the base system by unpacking a squashfs rather than by running debootstrap09:49
cjwatsonI'll fix the naming at some point09:49
brendandcjwatson, okay - it might be confusing one of our tools. hopefully we can sort it out on our side09:50
cjwatsonIf you're going to build tooling around it, maybe I should fix it sooner rather than later09:52
cjwatsonI'll move it to /install/filesystem.*09:55
brendandcjwatson, apparently we need to be able to discern whether a system is being installed via d-i or casper09:58
cjwatsonbrendand: Should be fixed in tomorrow's images10:06
mptxnox, hi, I think the RAID design is functionally complete now10:57
* xnox \0/10:58
xnoxi will read the document soon.10:59
mptIt's not my best work. Partly I'm hamstrung by starting from the current advanced partitioner, but still, when creating an array it's opening two dialogs in succession, which is not cool.10:59
mptAnd then going through N "Choose a security key" screens for however many LUKS-encrypted arrays you set up.11:00
mptIt's also highly suspicious that the way someone would choose which disks/partitions go into a volume group, and the way they'd choose which disks/partitions go into a Raid array, are completely different11:04
mptThey seem like similar operations11:04
mptAre there any stats (or, failing that, guesswork) on (a) the distribution of how many Raid arrays real-world systems have (e.g. 0 = 99%, 1 = 0.7%, 2 = 0.2%...), and (b) the distribution of how many volume groups real-world systems have?11:06
cjwatsonMy guesswork would be that RAID is bimodal between (a) two (one for boot loader bits, one for LVM) and (b) lots (one corresponding to each mounted filesystem), but I have no stats11:09
cjwatsonI don't think I've ever seen a system with more than one volume group, although my experience is fairly narrow and I can imagine needs for it11:10
mptI guess (a) and (b) are both examples of "give me an array of each of these partitions"11:17
mptLike the use case xnox gave me: "You want to use multiple devices in an encrypted RAID array, but the bootloader needs to be on a small unencrypted partition, so you want to partition all those devices in exactly the same way. The result will be two RAID arrays, one unencrypted and one encrypted, sharing the same set of disks."11:18
mptThat's (a)11:18
mptI'll mark this as done now, but when I come back to the installer this week or next, I'll see how RAID would fit into the new advanced partitioner design, and maybe that will show me how to make the old-partitioner-based design less modal (if xnox hasn't started implementing that design by then).11:22
xnoxcjwatson: i am adding an extra page in the automatic partitionaire for LUKS key setup. While the UI correctly switches to the new page, the debconf plows away and actually starts partitioning. Am I missing something to pause run() answering debconf questions?11:40
cjwatsonWhat are you returning from run?11:41
xnoxi only changed plugin_on_next_clicked() to return false.11:42
xnoxcjwatson: good point. let me quickly double check.11:44
xnoxmpt: =) "using the Unicode multiplication symbol"12:02
mptxnox, you got me, that's ambiguous12:02
cjwatsonxnox: So, each backend script has to correspond to one page - you can't have multiple pages for a single script12:03
cjwatsonWell, I should probably check that, I forget how it works for the autopartitioner ...12:04
cjwatson(phone)12:04
mptxnox, because there is not one but two multiplication symbols, U+00D7 and U+271512:04
xnoxmpt: i was giggling at the 'unicode'. I will make it work with unicode ;-)12:05
* xnox ponders what's wrong with good old ASCII * symbol....12:06
* xnox hides12:06
xnoxcjwatson: well yes, it's a single page, but we swap the widgets in and out. E.g. the "ask, choose device/resize, manual" sub-pages. plus manual has dialogs as well.12:07
cjwatsonYeah, dialogs are different though because those are called in run() and it blocks on them returning12:07
cjwatsonrun normally shouldn't return until it's either preseeded the question that was asked or decided that it can carry on with the default value without explicitly preseeding it12:11
xnoxcjwatson: excellent! i'll do that, but block on the function which validates passwords, waits for user to click 'install now'12:11
xnoxi have been preseeding the luks password too early, before the users gets to type it in, resulting in empty password preseed =(12:12
xnoxok. thanks a lot.12:12
cjwatsonOK.  As I think I said, it might well be worth splitting up the giant run method to try to make it a bit more comprehensible (and maybe testable too)12:13
xnox..... yeah12:13
xnoxcjwatson: some of run is easy to refactor, other bits (autopartitioning) do a lot of sniffing and changing state, such that the same questions do different things depending on the state.12:14
cjwatsonRight, I think the bulk of that stores state in the instance rather than in local vars though12:15
xnoxi tried to map out a DAG for it, but moved on to adding more stuff on top to implement new features.12:15
xnoxyou'd think that, but options are derived from OS count and extra_options pretty much in the UI already.12:16
xnoxand options are not incrementally stored in the instance for example.12:16
xnoxI got bitten by that.12:16
xnoxwell they are, but very late, when everything is done already.12:16
cjwatsonsounds like a bug :)12:16
cjwatsonanyway, don't need to split it all up to the finest granularity in one go - I was thinking one method per question asked12:17
xnoxa quirk12:17
xnoxok.12:17
cjwatsonand I'm pretty sure that *is* almost entirely self-contained at that level12:17
cjwatsonat least, that would gain a level of indentation, which would help on its own :)12:17
* xnox mentally highlights "almost"12:17
xnox=))))12:17
xnoxok.12:17
xnoxlet me sort this last bug, push auto-crypto out, then refactor, then continue with the other designs.12:18
xnoxs/designs/features/12:18
CIA-7ubiquity: cjwatson * r5578 trunk/ (debian/changelog ubiquity/debconffilter.py): Simplify DebconfFilter.process_line slightly.12:27
CIA-7ubiquity: cjwatson * r5579 trunk/ (debian/changelog ubiquity/keyboard_names.py): Simplify KeyboardNames._load_file using collections.defaultdict.12:29
=== babyface_ is now known as baby_face
=== baby_face is now known as babyface_
cody-somervilleIs it kopts when booting the live system to install before the double dash or after the double dash that get copied over to the installed system?19:49
xnoxubiquity crypt installation is very slow.....22:58

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