=== plars-off is now known as plars === zequence_ is now known as zequence [09:39] Which component deals with the log_{host,port} boot parameters? [09:42] I would have thought something like base-installer or debian-installer{,-utils) but grepping through them for "log_host" seems to give me nothing. [09:42] rootskel [09:42] You were close :) [09:42] for #944614, is this a valid fix? http://bazaar.launchpad.net/~wenchien/ubiquity/precise-proposed.lp944614-ver02/revision/5430 [09:43] wenchien: Using self.page seems sensible, but I don't see how setting it to None specifically in calculate_closed makes sense [09:44] calculate_closed only closes the special keyboard query window, not the page [09:44] cjwatson: ah... [09:44] * cjwatson looks around [09:46] cjwatson: Oh. Excellent, thank you. [09:47] cjwatson: I see that it makes no attempt at passing that information on to the installed system. Do you know if there's a d-i (preseed) option for that or do I need to manually fiddle with rsyslog config? [09:47] The latter, I think [09:48] Alright. [09:48] cjwatson: Cool, thanks. [09:48] wenchien: Actually, no, I don't really think self.page is right here either. Think about what that code is doing: it's applying the keyboard variant you selected to the running system [09:48] wenchien: I don't think that it's correct to skip that just because the user happened to hit Enter a bit too quickly [09:49] wenchien: The correct fix is to apply the keyboard variant even if the dbfilter has gone away, by starting up another one if necessary: that's what I meant in my previous review [09:50] wenchien: (Or, perhaps, by inhibiting page switching if there's a pending layout change) [09:51] wenchien: The same goes for keyboard_layout_timeout [09:51] wenchien: Do you see what I mean? I understand the desire to just make the error go away, but I think doing that just masks an underlying problem. [09:54] cjwatson: humm, okay, so you would like a valid dbfilter in keyboard_variant_timeout(), if it's not valid, create one, right? [09:55] It might be simpler to hook into the place where the dbfilter is destroyed and ensure that all pending timeouts are processed [09:56] cjwatson: this issue happens when you click next on the keyboard layout page, and then click back on the following page, can't see why there is a pending layout change... @@a [09:56] stgraber explained that in his review [09:56] oh, ok [09:57] Technically, apply_keyboard doesn't need a dbfilter as such (well, aside from being a method on one, but that could be shuffled around), so you *could* start a new debconf-communicator if you're lacking one, but that would be inefficient [09:57] I think it'd be easier and quicker to hook into teardown of the console-setup page [10:01] e.g. I suspect you could modify Page.cleanup there to call self.ui.cleanup, then you could have PageGtk.cleanup sort out any pending timeouts and have PageKde.cleanup do nothing [10:05] cjwatson: will try that, thanks! :) [15:07] how do i preseed a "no items selected" value for a multiselect in d-i? [15:08] "d-i foo/bar multiselect" [15:09] hm, must be breaking it somewhere else [15:11] i'm trying to work around the vexing issue of grub-pc being pulled in (and asking me questions) during package install, and grub-installer.udeb doing it again, later on. stupid customized tasks. [15:18] Any reason you can't just avoid installing grub-pc earlier? It's wrong to do so anyway because that means you only cope with certain hardware. [15:25] i'm already overdue on this. bios-only grub nonsense is good enough for a first cut [15:32] I'm not totally sure what you're asking for is possible, though I might be able to figure it out given a DEBCONF_DEBUG=developer log of the whole installation [15:55] cjwatson: do you know if it is possible to use auto-partitions (w/expert recipe I guess) but also preserve one existing partition? [15:55] cjwatson: essentially we have folks upgrading from lucid to precise, and they want to keep their /home, but wipe everything else [15:56] but we want to build a pxe target that will just do it for them [15:59] That's a long-standing missing feature, really [15:59] The problem is a lack of a good way to specify the partition in question in the recipe format [15:59] xnox: I hear you might be able to help us with an intermittent but relatively common issue we're having doing preseeded nfs-based ubiquity installs? [16:00] So we can sort of do it for some limited cases (e.g. reuse a swap partition), but not I think that one, sorry [16:00] ok [16:00] nuclearbob: go ahead =) I am waiting to hear more details. [16:00] If you wanted to try to help figure it out, grepping for reusemethod in partman-auto would be the place to start [16:00] cjwatson: if we were to add this feature... [16:00] ok partman-auto [16:00] I mean honestly we should have added this feature to partman-auto like six years ago [16:00] but alas, we were poorly staffed then :/ [16:01] bug 195608 [16:01] Launchpad bug 195608 in partman-auto (Ubuntu) "[Feature Request] enhance recipe format to allow specifying an existing partition" [High,Triaged] https://launchpad.net/bugs/195608 [16:01] nuclearbob: how are you preseeding & what issue you experience. [16:01] It is tougher to get staff to fix stuff like this now, since we run the LTS and won't actually get the fix for a while [16:01] xnox: so since last cycle we've been using cobbler to do preseeded installs using ubiquity and a desktop image exported over nfs. early in this cycle, we started running into an issue where sometimes, if the machine hasn't received any keyboard or mouse input, it'll get some of the way through the installer, and then the screen will go black and the machine will stop responding until it's power cycled [16:02] antarus: Ah, heh, that bug has a link to a sketch of a solution in a branch of mine ... [16:03] It's limited and no doubt needs both fixes and extensions [16:04] nuclearbob: and "by early in the cycle" you can pin point exact date? [16:05] xnox: I haven't definitively reproduced the problem on any image before 2012-12-19 [16:05] cjwatson: ok thanks for the information :) [16:05] xnox: when I did my initial survey of working images, I was treating the problem as constant rather than intermittent, so it's possible I missed some images that might fail, but quantal and older images have never displayed the issue to my knowledge [16:08] nuclearbob, is that still the same thing we discussed recently ? iirc you claimed it started on dec. 20th back then [16:09] nuclearbob: and we literarly have no logs while it's hanging? [16:09] ogra: I'm not exactly sure about the 19th, I've seen that image fail, but I don't know if it was this bug or something else [16:09] nuclearbob: /me ponders if we somehow can have them on serial / tty / over the network [16:10] k, i just remembered the date ... [16:10] xnox: we can, that's setup, I just haven't goten anything useful out of it yet [16:10] xnox: I tried just running getty on it, and every time I did that, I couldn't recreate the bug [16:10] nuclearbob: does that suggest it may be a race? [16:10] xnox: the logging to serial setup we use for vms isn't working on the hardware for some reason, so if you have thoughts on that, I'd be interested in alternate configurations to try [16:11] rumour has it stgraber was poking this already as well?! [16:11] gema: it may, yes, since it's not occurring on every run [16:11] yes, he was helping me try to take a look, but I couldn't get him any logs [16:11] xnox: he needed us to reproduce it before he could do anything [16:11] * ogra_ would rather suspect an nfs locking issue or so [16:11] every time I get on the machine to get logs, the issue doesn't occur [16:11] xnox: we need help with the reproducing it part [16:11] ogra_ do you know how we might be able to rule that out? I don't know how else to do a remote ubiquity install on physical hardware [16:12] ogra_: same here, but there are no relevant nfs nor kernel changes that early in the cycle. it was still 3.7 kernel and nfs-utils didn't change. And no scary changes in ubiquity..... [16:12] ogra_ if we could get off nfs, I'd be pretty happy [16:13] i wonder ... dont we have nbd support as well ? or some iscsi setup might do [16:13] once upon a time I tried packing the squashfs into the initrd that I used over pxe, but I couldn't get casper to pick it up since it wasn't on a device [16:13] wow, brave [16:13] 800MB initrd ? [16:14] yeah, it booted [16:14] just couldn't get casper to use the squashfs [16:14] ogra_: no nbd support yet, it's on my todo for Edubuntu though. We have cifs support though [16:14] ah, yeah, cifs [16:15] i knew there were alternatives :) [16:18] so, nuclearbob, can we use cifs? [16:18] bug 1096943 I am guessing =) [16:18] Launchpad bug 1096943 in ubiquity (Ubuntu) "Ubiquity freezes during nfs-based desktop install from recent live destkop images on physical hardware" [High,New] https://launchpad.net/bugs/1096943 [16:18] looks like you attached some logs?! [16:18] gema: yeah, if we can get the kernel parameters to use cifs instead of nfs, we should be able to change the setup commands to use that [16:19] nuclearbob: check with bjf or sconklin [16:19] that's what I got out of a machine when I did an empty preseeed, logged in, started ssh, and started ubiquity manually [16:20] not quite the same circumstances, and stgraber said when we did that the install completed, but since x locked up, I coultn'd click okay to reboot [16:22] yeah, you could have preseeded just the "autoreboot" [16:23] "Jan 7 16:05:06 ubuntu ubiquity: sudo: unable to resolve host ubuntu" unrelated but looks like networking or /run is not setup properly in the live environment during the install, or the scripts that are executed =/ [16:23] how do I use a preseed when launching ubiquity from the command line? [16:24] xnox: that error is issued when /etc/hostname, /etc/hosts and /proc/sys/kernel/hostname don't match, it's unrelated to networking [16:24] will it still pick up one in /preseed.cfg ? [16:24] stgraber: yes, true. [16:24] xnox: it typically happens when you try to run sudo from a chroot that has a different hostname from the host [16:24] which is correct. yeah. [16:26] nuclearbob: one can set environment variable to trick ubiquity into running in the automatic mode. or, since we now have script hooks support, one can drop a script to preseed that when ubiquity starts. [16:27] "preseed that" means preseed the restart command. [16:28] xnox: it sounds like we could use the hooks to run the normal preseed after getting an ssh server started on the machine [16:29] yeah. so hooks are executable files in "/usr/lib/ubiquity/dm-scripts/install" dir. [16:30] they may not have '.' in their name. [16:30] nuclearbob: or you can trick ubiquity into running in preseeded mode by simply setting "UBIQUITY_AUTOMATIC" environmental variables. [16:31] xnox: that sounds easier [16:31] and I really mean setting. as in it can be anything. [16:36] ev: blast from the past, I like your style =)))) https://wiki.ubuntu.com/Installer/Bootstrapping [16:36] I tend to replace bits and bobs, but that is useful when doing complete redesign =) like you did, or I might have to do again soon. [16:37] nuclearbob: you can fiddle with debconf on the command line to preseed just a couple of values. http://feeding.cloud.geek.nz/posts/manipulating-debconf-settings-on/ [16:38] xnox: I feel like it would better recreate the bug's conditions to use the whole preseed we'd normally use, if that makes sense to you [16:38] xnox: it'll be easy to get that into the live fs once ssh is running too [16:38] nuclearbob: that would be great as well! [16:38] even better. [16:39] nuclearbob: we might potentially want to do this all the time, to always get nfs logs / debug what not. Cause even if we fix this once, it will be needed again (when new hw, what not breaks down again) [16:40] xnox: I'm working in getting the installer syslog sent over the network to the host machine [16:41] well.... if one gets rsyslogd up an running and sending it over the network that should work. [16:43] yep, that's the plan [16:43] nuclearbob: just make sure the limits are cranked up and there is no throttling, cause with debconf set to developer verbosity it can be overwhelming. [16:45] xnox: good to know, thanks [16:56] xnox: oh god, I remember that thing [16:57] =))))