[00:11] <CIA-2> console-setup: cjwatson * r77 ubuntu/debian/changelog: releasing version 1.25ubuntu3
[01:51] <cjwatson> TheMuso: do you have something to take care of anna-installing dmraid-udeb when needed?
[01:51] <cjwatson> TheMuso: dmraid promoted to main
[01:54] <soren> cjwatson: Unless something changes, that happens in disk-detect
[01:54] <soren> s/changes/changed/
[01:55] <TheMuso> cjwatson: disk-detect does that.
[01:55] <TheMuso> cjwatson: and thanks.
[01:59] <TheMuso> soren: Nothing has changed in terms of disk-detect not handling dmraid-udeb.
[02:00] <soren> -ETOOMANYNEGATIONS
[02:06] <TheMuso> heh
[02:06] <TheMuso> basically no it hasn't changed.
[02:26] <soren> Ok, got it :)
[06:43] <cjwatson> ok, thanks
[11:44] <abli_> 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] <abli_> also: does the order of lines in the preseed file matter?
[13:30] <abli_> 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] <cjwatson> abli_: so how are you feeding the preseed file to the installer?
[13:55] <cjwatson> and exactly which question do you get asked? (a transcription of the question text would be best)
[14:43] <Omahn> 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] <cjwatson> Omahn: update your installer image to the one in hardy-updates
[14:55] <Omahn> That's funny. I was just reading your comments in Launchpad saying the same thing.. :-)
[14:55] <Omahn> Trying it now..
[15:06] <Omahn> 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] <cjwatson> sorry about that bug, it was one of those things that intrinsically only showed up after release
[15:07] <Omahn> 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] <Omahn> cjwatson: On a slightly different note, do you know if Canonical offers educational pricing on their support contracts?
[15:09] <cjwatson> I don't; Canonical tends to insulate its developers from having to care about pricing details :)
[15:10] <Omahn> No problem :-)
[15:10] <cjwatson> http://forms.canonical.com/dashboard/survey/response.jsp seems to be the, er, canonical way to find out
[15:11] <Omahn> (filling that out, right now)
[16:20] <abli_> 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] <abli_> 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] <cjwatson> you may have to put some of those things on the kernel command line instead
[16:24] <cjwatson> e.g. netcfg/get_hostname=foobar
[16:25] <cjwatson> the installation guide does say some stuff about this
[16:25] <cjwatson> 12:00 <abli_> also: does the order of lines in the preseed file matter?
[16:25] <cjwatson> it does not matter; think of it as setting lots of variables and then setting the whole thing going
[16:25] <cjwatson> by the same token, if you try to set the same question twice, the last one will win
[16:26] <abli_> 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] <cjwatson> I mean the latter
[16:28] <cjwatson> see e.g. the first paragraph of "Network configuration"
[16:28] <cjwatson> and https://help.ubuntu.com/8.04/installation-guide/i386/preseed-using.html#preseed-bootparms for general advice
[16:30] <abli_> 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] <abli_> 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?
[16:36] <abli_> 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] <cjwatson> 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] <abli_> 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] <cjwatson> 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] <cjwatson> in other words, the preseed file isn't read until after netcfg runs, so setting netcfg questions in there is useless.
[16:44] <cjwatson> (in your installation method; not in others)
[16:44] <cjwatson> "d-i partman..." is correct
[16:45] <cjwatson> netcfg/disable_dhcp=true on the kernel command line
[16:46] <cjwatson> 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] <abli_> But I tried what the installation guide suggested and it didn't appear to work.
[16:48] <abli_> 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] <abli_> Also, even thought I have "netcfg/disable_dhcp=true" on the kernel commandline, dhcp is still used by the installer
[16:54] <cjwatson> re partitioning, I can perhaps help if I see the preseed file
[16:54] <cjwatson> netcfg: yes, the installation guide even says that explicitly
[16:57] <abli_> 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] <cjwatson> 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] <cjwatson> 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] <cjwatson> please just take my word for it?
[16:59] <cjwatson> 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] <cjwatson> 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] <cjwatson> booting from the CD and getting Linux to understand the CD are two very different matters, often confused
[17:01] <abli_> ah. ok.
[17:01] <abli_> The preseed file: http://angel.elte.hu/~abeld/preseed
[17:01] <cjwatson> 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] <cjwatson> lose those partman-auto preseeds, they're useless
[17:02] <abli_> ok.
[17:03] <cjwatson> I mean the ones beginning partman-auto rather thand-i
[17:03] <abli_> yeah, ok.
[17:03] <cjwatson> if you have more than one disk then you'll need to preseed partman-auto/disk
[17:04] <abli_> I only want to automate the "install to the whole disk" (i.e. the most trivial installation), so it should work
[17:05] <cjwatson> as the guide says:
[17:05] <cjwatson> # Alternatively, you can specify a disk to partition. The device name must
[17:05] <cjwatson> # be given in traditional non-devfs format.
[17:05] <cjwatson> # For example, to use the first SCSI/SATA hard disk:
[17:05] <cjwatson> d-i partman-auto/disk string /dev/sda
[17:05] <cjwatson> # Note: If you want to use whatever disk is available, no matter
[17:05] <cjwatson> # what its device name, comment the line above out. This will only work if
[17:05] <cjwatson> # the system only has one disk.
[17:05] <cjwatson> if you have more than one disk and leave out partman-auto/disk, then the preseeding will be ignored ...
[17:08] <abli_> 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] <abli_> btw. can I preseed the "save debug logs" setting? :)
[17:35] <cjwatson> 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] <abli_> cjwatson, ouch. So I can't create an "all debugs turned on" automatic install?
[17:48] <abli_> I submitted the documentation bug: https://bugs.launchpad.net/ubuntu/+source/installation-guide/+bug/262330
[17:53] <cjwatson> you only need the "save debug logs" bit if the installation fails part-way through
[17:53] <cjwatson> if it succeeds, logs will automatically be saved in /var/log/installer/ on the target system
[17:53] <cjwatson> and putting DEBCONF_DEBUG=developer provides a complete trace of most things
[17:53] <cjwatson> putting that on the kernel command line, I mean
[17:55] <abli_> ok. so " DEBCONF_DEBUG=developer" is the setting I was looking for
[18:30] <abli_> 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] <cjwatson> "true" is spelt thus, not "tru".
[18:37] <cjwatson> 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] <cjwatson> 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] <abli_> woops. yes. I had a typo in isolinux.cfg
[18:39] <abli_> ok. that explains a lot.
[18:39] <cjwatson> 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] <cjwatson> most people find preseed/url easier
[18:39] <abli_> No, I'll just use preseed/url, thanks.
[18:42] <abli_> I'll also update the documentation bug to "note that preseed/file won't work with netboot"
[18:42] <cjwatson> if you could file a separate bug for that, I'd appreciate it
[18:42] <abli_> ok.
[18:43] <cjwatson> 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] <cjwatson> the guide does actually sort of say that already, but only by omission
[18:44] <abli_> 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] <cjwatson> the "if you're netbooting:", "if you're booting a remastered CD:", etc. bit
[18:44] <cjwatson> I'd rather it were separate anyway, please
[18:45] <cjwatson> it's much easier to merge bugs in Launchpad than it is to split them
[18:45] <abli_> where is that "if you are netbooting" part?
[18:45] <abli_> ok. seperate bug it is.
[18:45] <cjwatson> in the "Loading the preconfiguration file" section
[18:45] <cjwatson> linked from https://help.ubuntu.com/8.04/installation-guide/i386/appendix-preseed.html
[18:46] <abli_> ah ok.
[18:46] <cjwatson> oh, actually, that second bug would be invalid
[18:46] <cjwatson> 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] <abli_> ouch
[18:52] <abli_> 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] <abli_> 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] <abli_> I mean wget "http://csik.elte.hu:9999(null)/dists/hardy/Release/"
[20:11] <abli_> I have to go now, but if you have any idea about this mirror-directory setting, I'll read the logs tomorrow.