[00:11] console-setup: cjwatson * r77 ubuntu/debian/changelog: releasing version 1.25ubuntu3 === superm1|away is now known as superm1 [01:51] TheMuso: do you have something to take care of anna-installing dmraid-udeb when needed? [01:51] TheMuso: dmraid promoted to main [01:54] cjwatson: Unless something changes, that happens in disk-detect [01:54] s/changes/changed/ [01:55] cjwatson: disk-detect does that. [01:55] cjwatson: and thanks. [01:59] soren: Nothing has changed in terms of disk-detect not handling dmraid-udeb. [02:00] -ETOOMANYNEGATIONS [02:06] heh [02:06] basically no it hasn't changed. [02:26] Ok, got it :) [06:43] ok, thanks === superm1 is now known as superm1|away [11:44] Hi! I am trying to make a custom ubuntu installer with preseeding. The problem is that some of my preseeds are being ignored (or they are wrong): for example, I have "d-i mirror/http/hostname string local_machine:9999" in the preseed file, but I still get asked for the mirror. (local_machine is the domain name of a local machine which runs approx (apt proxy). Any ideas?) [12:00] also: does the order of lines in the preseed file matter? [13:30] In general, why don't the preseed lines mentioned in https://help.ubuntu.com/8.04/installation-guide/i386/preseed-contents.html work? (I am using http://archive.ubuntu.com/ubuntu/dists/hardy-updates/main/installer-amd64/current/images/netboot/mini.iso as a base) [13:55] abli_: so how are you feeding the preseed file to the installer? [13:55] and exactly which question do you get asked? (a transcription of the question text would be best) [14:43] Hello. I'm using PXE boot to install Hardy from a local mirror. Recently it's stop working, stopping with a 'Failed to load installer component: Loading apt-mirror-setup failed for unknown reasons' message. Has anyone any experience with this or how to debug? [14:52] Omahn: update your installer image to the one in hardy-updates [14:55] That's funny. I was just reading your comments in Launchpad saying the same thing.. :-) [14:55] Trying it now.. [15:06] Phew! Thanks, works perfectly now. I was starting to sweat a bit.. giving a demo of our Ubuntu/puppet build to try and get Ubuntu officially supported in our organisation.. [15:07] sorry about that bug, it was one of those things that intrinsically only showed up after release [15:07] No problems at all, it's nice to actually get to speak to one of the devs directly rather than through a call centre. [15:09] cjwatson: On a slightly different note, do you know if Canonical offers educational pricing on their support contracts? [15:09] I don't; Canonical tends to insulate its developers from having to care about pricing details :) [15:10] No problem :-) [15:10] http://forms.canonical.com/dashboard/survey/response.jsp seems to be the, er, canonical way to find out [15:11] (filling that out, right now) [16:20] cjwatson, I put it in the cd image and pass the filename in isolinux.cfg as a boot parameter. Some preseed settings _are_ apparently being used, for example I am not asked for the keyboard configuration (which my preseed file also contains) [16:24] The first question I am asked is to okay the hostname, and the second "Choose a mirror of the Ubuntu archive" (by country, in the installer one long list of countries with "United States" set default and "enter information manually" at top.) [16:24] you may have to put some of those things on the kernel command line instead [16:24] e.g. netcfg/get_hostname=foobar [16:25] the installation guide does say some stuff about this [16:25] 12:00 also: does the order of lines in the preseed file matter? [16:25] it does not matter; think of it as setting lots of variables and then setting the whole thing going [16:25] by the same token, if you try to set the same question twice, the last one will win [16:26] cjwatson, thanks. Which "installation guide" are you talking about? I am trying to follow https://help.ubuntu.com/community/InstallCDCustomization and using https://help.ubuntu.com/8.04/installation-guide/i386/preseed-contents.html for some preseed settings. [16:27] I mean the latter [16:28] see e.g. the first paragraph of "Network configuration" [16:28] and https://help.ubuntu.com/8.04/installation-guide/i386/preseed-using.html#preseed-bootparms for general advice [16:30] But that talks about "may use kernel command line instead of preseed file" and not "have to use kernel command line", right? My preseed file is on the CD, so having all settings in one file, instead of some in the preseed file and some on the kernel command line would be nicer. [16:32] Also, why doesn't "d-i netcfg/get_hostname string test-machine" work from the preseed file, if "netfg/get_hostname" works from the kernel commandline? === superm1|away is now known as superm1 [16:36] I think the preseed-contents.htm is not fully up-to-date: for example, it mentiones"d-i partman...." lines for preseeding the partitioner, but if I do an install, and then dump the debconf settings, I see "partman partman-auto...." lines being used. Is "d-i partman..." the correct one? (I couldn't get partitioning preseeded either way, not even for a "fully automatic use whole disk" setup) [16:43] sorry, you can't put all of them in one file even if they're on the CD. The reason is that the installer doesn't actually have enough brain to read files off the CD until it's got a little way through the installation. [16:43] Putting " netcfg/get_hostname=foobar" on the kernel command line did solve the hostname-asking part. But how do I turn off dhcp? I have both "d-i netcfg/use_dhcp boolean false" and "d-i netcfg/disable_dhcp boolean true" but the installer still uses dhcp [16:43] the "may" equivocation is because the exact questions you have to put on the kernel command line vary depending on which installation method you're using. [16:44] in other words, the preseed file isn't read until after netcfg runs, so setting netcfg questions in there is useless. [16:44] (in your installation method; not in others) [16:44] "d-i partman..." is correct [16:45] netcfg/disable_dhcp=true on the kernel command line [16:46] I wouldn't recommend dumping the debconf database as a source of preseeding options, particularly not for partitioning. The advice in the installation guide is a much better source there [16:47] But I tried what the installation guide suggested and it didn't appear to work. [16:48] But back to the dhcp part: if I am using the netinstall mini.iso as a base, everything that preseed-contents.html would suggest to put in the preseed file as "d-i netcfg/.." I have to put in the kernel commandline? [16:50] Also, even thought I have "netcfg/disable_dhcp=true" on the kernel commandline, dhcp is still used by the installer [16:54] re partitioning, I can perhaps help if I see the preseed file [16:54] netcfg: yes, the installation guide even says that explicitly [16:57] I am not _booting_ from the network. The way I interpret the installation guide, putting it in the kernel command line is only needed when booting from the network, not when using the netinst mini.iso (which, after all boots from the CD, so there is no reason the installer can't read the preseed file before running netcfg) [16:58] the thing that makes a difference is what the image was built for - that is, which particular installer components are built into the image [16:58] if you use a netboot image, it doesn't matter whether you happen to boot it from the network or from its CD form factor [16:58] please just take my word for it? [16:59] I'll be happy to try to get the installation guide clarified, and would appreciate a bug filed on the installation-guide package in Ubuntu for that specific issue (i.e. not clear enough about booting from network vs. booting a netboot image) to remind me [17:00] the reason that the installer can't read the preseed file before running netcfg is that the netboot installer image doesn't actually contain any CD drivers - it has to fetch them from the network [17:00] booting from the CD and getting Linux to understand the CD are two very different matters, often confused [17:01] ah. ok. [17:01] The preseed file: http://angel.elte.hu/~abeld/preseed [17:01] disable_dhcp> interesting, I can't reproduce that. Perhaps you could add DEBCONF_DEBUG=developer to the kernel command line and get me the syslog (go back to installer main menu, select "save debug logs") so that I can investigate that [17:02] lose those partman-auto preseeds, they're useless [17:02] ok. [17:03] I mean the ones beginning partman-auto rather thand-i [17:03] yeah, ok. [17:03] if you have more than one disk then you'll need to preseed partman-auto/disk [17:04] I only want to automate the "install to the whole disk" (i.e. the most trivial installation), so it should work [17:05] as the guide says: [17:05] # Alternatively, you can specify a disk to partition. The device name must [17:05] # be given in traditional non-devfs format. [17:05] # For example, to use the first SCSI/SATA hard disk: [17:05] d-i partman-auto/disk string /dev/sda [17:05] # Note: If you want to use whatever disk is available, no matter [17:05] # what its device name, comment the line above out. This will only work if [17:05] # the system only has one disk. [17:05] if you have more than one disk and leave out partman-auto/disk, then the preseeding will be ignored ... [17:08] Well, I have only one disk (actually I am only trying to automate installing in a kvm virtual machine so that I can debug/test other parts of the automatic installer faster.) I'll try the disable_dhcp debugging in about an hour. [17:13] btw. can I preseed the "save debug logs" setting? :) [17:35] you can't preseed the process of dropping out and going back to the installer main menu at some point in the middle, no [17:36] cjwatson, ouch. So I can't create an "all debugs turned on" automatic install? [17:48] I submitted the documentation bug: https://bugs.launchpad.net/ubuntu/+source/installation-guide/+bug/262330 [17:53] you only need the "save debug logs" bit if the installation fails part-way through [17:53] if it succeeds, logs will automatically be saved in /var/log/installer/ on the target system [17:53] and putting DEBCONF_DEBUG=developer provides a complete trace of most things [17:53] putting that on the kernel command line, I mean [17:55] ok. so " DEBCONF_DEBUG=developer" is the setting I was looking for [18:30] The contents of /var/log/installer I uploaded to http://angel.elte.hu/~abeld/test-installer-logs/ The preseed file used is at http://angel.elte.hu/~abeld/preseed [18:34] "true" is spelt thus, not "tru". [18:37] I don't think preseed/file is ever honoured in netboot installations. I'd suggest putting it somewhere network-accessible and using preseed/url instead. [18:38] furthermore, the CD is never mounted in an installation from a netboot image - you boot off it, but Linux never looks at it after that - so you couldn't use preseed/file=/cdrom/... anyway [18:38] woops. yes. I had a typo in isolinux.cfg [18:39] ok. that explains a lot. [18:39] there is an "initrd preseeding" mechanism that you can use if you absolutely have to have the preseed file on the CD you're using; it's documented in the installation guide, I think, and requires unpacking and rebuilding the installer image [18:39] most people find preseed/url easier [18:39] No, I'll just use preseed/url, thanks. [18:42] I'll also update the documentation bug to "note that preseed/file won't work with netboot" [18:42] if you could file a separate bug for that, I'd appreciate it [18:42] ok. [18:43] dumping multiple problems into the one bug often causes problems later (for example if one bit gets fixed but the other doesn't), and generally makes things harder to track [18:43] the guide does actually sort of say that already, but only by omission [18:44] althought the two are sort-of related: one has to configure network before preseed/url can be read, so noting that preseed/file won't work with netboot image fixes the currently filed bug, too [18:44] the "if you're netbooting:", "if you're booting a remastered CD:", etc. bit [18:44] I'd rather it were separate anyway, please [18:45] it's much easier to merge bugs in Launchpad than it is to split them [18:45] where is that "if you are netbooting" part? [18:45] ok. seperate bug it is. [18:45] in the "Loading the preconfiguration file" section [18:45] linked from https://help.ubuntu.com/8.04/installation-guide/i386/appendix-preseed.html [18:46] ah ok. [18:46] oh, actually, that second bug would be invalid [18:46] https://help.ubuntu.com/8.04/installation-guide/i386/preseed-intro.html already has a table saying that file preseeding isn't supported with netboot [18:49] ouch [18:52] I didn't even see that page... I started from https://help.ubuntu.com/community/InstallCDCustomization (which does link to it, but the link is a bit tucked away). So what really mislead me was that that page (https://help.ubuntu.com/community/InstallCDCustomization) only talks about 'full' CDs, i.e. non-netboot ones [19:54] Another problem: I am using preseed/url now, but even thought the preseed file contains "d-i mirror/http/directory string /ubuntu" it is somehow read by the installer as "(null)": In /var/log/syslog I get "debconf: <-- GET mirror/http/directory" and on the next line "debconf: <-- 0 (null)". And then it tries to wget "http://csik.elte.hu:9999(dist)/hardy/Release/" which, of course, fails. The preseed file is at http://angel.elte.hu/~abeld/preseed.cfg [20:00] I mean wget "http://csik.elte.hu:9999(null)/dists/hardy/Release/" [20:11] I have to go now, but if you have any idea about this mirror-directory setting, I'll read the logs tomorrow.