/srv/irclogs.ubuntu.com/2008/09/05/#ubuntu-installer.txt

hardwireI uh.. was sorta ushered over here from debian-boot ;)07:48
hardwirehttp://techbits.bogomip.com/2008/09/how-i-installed-ubuntu-amd64-server-on.html07:48
hardwirejust wrote that.. and sorta maybe just discovered that the hostname and domain is being overridden by the reverse dns lookup for the static IP during the automatic install07:49
hardwireanyways to .. stop that?07:49
hardwirecause it's bad m'kay?07:49
cjwatsonhardwire: unfortunately, this is a long-standing bug, namely bug 218965 (see the linked Debian bug there for more detail). The best I can offer as a workaround is to sed the hostname and domain you want into place in the relevant files in /target from a preseed/late_command hook.09:11
=== superm1|away is now known as superm1
=== superm1 is now known as superm1|away
cr3is there a way to hook into the alternate installer to run some command when an error occurs?15:29
=== superm1|away is now known as superm1
superm1well CIA decided to not submit a few of my last commits again.  i fixed an issue that I just saw with the build process introduced recently preventing the GTK frontend from building15:48
superm1i'm not sure if the last ubiquity upload (the .11) is affected15:48
evandcia-submit?15:50
evandbut thanks15:50
superm1ah no it wasn't affected because it was FTBFS :) http://launchpadlibrarian.net/17247922/buildlog_ubuntu-intrepid-i386.ubiquity_1.9.11_FAILEDTOBUILD.txt.gz15:50
CIA-44ubiquity: superm1 * r2793 ubiquity/ (5 files in 4 dirs): update mythbuntu frontend video driver installation to use mythbuntu-common and abstract the versioning15:50
evandah, hooray15:50
superm1there should be 4 others or so though15:50
superm1hum15:50
superm1the others were more relevant15:50
CIA-44ubiquity: superm1 * r2793 ubiquity/ (5 files in 4 dirs): update mythbuntu frontend video driver installation to use mythbuntu-common and abstract the versioning15:50
superm1oh well15:50
superm1there looks to possibly be another issue going on with partman-base from something that cjwatson committed to the tree a long time back but that was never released15:52
superm1well when luke rev'd partman-base, that commit from way back when got added15:53
evandhrm15:59
evandit appears to have built fine.  What's the issue, exactly?  Is the install failing?16:01
superm1yeah16:02
evandalternate or desktop?16:02
superm1desktop, but only using builds that are 1.9.11 or later16:02
superm1since they pull that in16:02
superm1it turns out that preseed_command isn't found16:02
superm1which i'm not sure where it was supposed to be provided from anyhow?  I quick grep didn't indicate where it's supposed to come from16:03
evandpreseed16:04
* evand digs16:05
superm1well the variable partman/early_command should come from preseed, but the executable/shell script what not called preseed_command doesn't seem to be sitting around in the usual places16:05
cjwatsonhm, really?16:07
cjwatsonoh, of course, it isn't in ubiquity, bleh16:07
cjwatsonevand: might need to suck that into ubiquity's pile of imported source packages. We shouldn't need the rest of it but preseed_command looks like it should be usable standalone16:07
evandok, will do16:09
=== superm1 is now known as superm1|away
hardwireanybody else noticed that hardy current d-i installers seem to ignore domain and hostname settings in /proc/cmdline as well as the preseed file if there is RDNS available?17:38
hardwireusing static IP?17:38
hardwirehere's my preseed:  http://techbits.bogomip.com/2008/09/how-i-installed-ubuntu-amd64-server-on.html17:39
hardwirein actuality, I'm not using an internal IP.. those are example settings.17:39
CIA-44ubiquity: evand * r2794 ubiquity/.bzrignore: Add mythbuntu build directory to bzrignore17:39
cjwatsonhardwire: I answered you this morning17:43
cjwatson09:11 <cjwatson> hardwire: unfortunately, this is a long-standing bug, namely bug 218965 (see the linked Debian bug there for more detail). The best I can offer as a workaround is to sed the hostname and17:43
cjwatson                 domain you want into place in the relevant files in /target from a preseed/late_command hook.17:43
hardwirecjwatson: apologies.. I had to log in to my irc proxy and scroll through the logs this morning..17:43
hardwireI didn't immediately see anything hardwire oriented :)17:44
hardwirebut thanks.17:44
cjwatsonno problem, sorry I can't offer anything better17:44
hardwirelong standing means it's still in intrepid eh?17:45
cjwatsonyes17:45
hardwiredoheth17:45
hardwirehmm.. cjwatson if I could theorize for a moment.. couldn't I just "echo 10.0.0.22 servername.domain servername >> /etc/hosts" on the installers root?17:46
hardwirethe dns resolver would prefer that anyways.17:47
hardwirenot much help for DHCP folk..17:47
hardwirebut hey..17:47
cjwatsonif you did it before it copied those files into /target, sure17:47
hardwireI'm gonna give it a go.17:47
cjwatsonand *after* it has generated them itself, otherwise it'll just blat what you did17:47
cjwatsonso you can't do it in preseed/early_command17:47
hardwireoh snap17:48
cjwatsonI'm surprised the DNS resolver cares what the local hostname is17:48
cjwatsonoh, I suppose if you're giving a non-FQ name as the mirror or something17:48
cjwatsonyou could fully-qualify the mirror as a workaround17:48
hardwireI'm surprised that the installer cares at all.17:49
cjwatsonit shouldn't, unless you're using a non-FQ mirror17:49
cjwatsoneven then I'm surprised that it cares17:49
hardwireso the hosname and domain name of the installed workstation for some reason depends on if the mirror is fully qualified or not?17:49
hardwirethat seems like chaos.17:49
cjwatsonno, obviously not17:49
cjwatsonI meant that if the mirror wasn't fully-qualified then it might use the local domain as a base for resolution17:50
hardwireahha17:50
hardwire"search" in /etc/resolv.conf17:50
cjwatsonbut looking at your blog I see you're saying it's doing a reverse DNS lookup on the local host name, so that's something different, ignore me17:50
hardwireyou're allowed17:50
cjwatsondoes that only happen when you try to ssh in?17:50
hardwiressh into the installer?17:51
cjwatsonthat's one step that I would expect to do an RDNS check17:51
cjwatsonoh, you're not doing that either17:51
hardwireyar17:51
cjwatsontherefore I'm confused. Are you sure the RDNS check is happening during installation, not later?17:51
hardwirethe installer is simply... guessing.. what my hostname should be.17:51
cjwatsonsure, I know17:51
hardwireit's all happening during the install17:51
cjwatsonbut I'm asking whether just fixing it up at the end of the installation would be sufficient17:51
hardwireI've tested it in subnets that have no RDNS.. and things work fine17:52
cjwatsonno, stop, listen :)17:52
cjwatsonif it doesn't make the installer go significantly more slowly, it doesn't matter whether you arrange for the installer to get it right to start with, or if you just have a preseed/late_command hook fix it up at the end17:52
cjwatsontherefore, it matters whether the RDNS check that's causing the delay is happening during installation, or after first boot17:52
cjwatsonin your blog, you're talking about waiting for the server to come up by polling port 22, which wouldn't distinguish between those two cases17:53
cjwatsonthat's why I'm asking17:53
hardwireah.17:53
hardwirethe end step was an attempt at humor17:53
hardwirebooting a remote server with no i/o access to it, and waiting for it to install ubuntu then completely reboot itself with openssh installed.17:54
hardwirethe tick tock of the clock while you panic wondering if your evil plan worked or not17:54
hardwirethat's all17:54
cjwatsonnot unreasonable, people do do that :)17:54
cjwatsonbut if you aren't doing that, do you have more information about which stage the delay happens at?17:54
hardwiremy server is srv001.sb.brutetech.com and for some reason serverbeach set my RDNS to brutetech.com17:54
hardwirewhen the machine comes back up after a fresh install it has the hostname "brutetech" and "search com" is in /etc/resolv.conf17:55
hardwireyou know this of course17:55
hardwireThere is no delay when dealing with RDNS17:55
hardwireit's just odd that RDNS is being used above my own preferences, which you've already told me I need a fixup for.17:55
cjwatsonoh, right, I thought you were talking about the installer taking 30 minutes longer *due* to this bug or something like that. (That sort of thing does happen so I assumed that's what you were asking about.)17:57
hardwireso are we still thinking the same bug on this?17:57
cjwatsonyes, same bug17:58
cjwatsonI suggest something like this:18:00
cjwatsond-i preseed/late_command string sed -i 's/brutetech/srv001/' /target/etc/hostname; sed -i 's/brutetech.*/srv001.sb.brutetech.com srv001/' /target/etc/hosts; sed -i 's/search.*/search sb.brutetech.com/' /target/etc/resolv.conf18:00
cjwatsonlo-tech18:00
cjwatsonmassage to taste18:00
hardwirecjwatson: ok.. I'm gonna try a few things18:00
hardwireMainly because I don't like my lvm's being named wrong18:01
cjwatsonoh, well, that bit *is* overridable18:02
cjwatsond-i partman-auto-lvm/new_vg_name string whatever18:03
hardwireI like your fixup for my scenario18:03
hardwirebut it doesn't match other peoples rdns for their own IP's.. etc.. and I was hoping to get a howto out via that blog entry :)18:03
hardwirewhich, thankfully, I can still edit.18:04
hardwireI will succeed, mark my words.18:04
hardwireare you marking them?18:05
cjwatson:-) I have too much to do to fix this for 8.10, unfortunately, and Debian being more or less frozen makes it awkward too; but if nobody else beats me to it I expect to have a go at it for 9.0418:05
hardwirewowser18:16
hardwirethere is no if statement surrounding seed_hostname_from_dns18:16
hardwirehow absolutely strange18:17
* hardwire tries to find a good hook to use18:18
hardwirecjwatson: I'm moving on for now.. requesting my RDNS be set right in the first place, or not at all.18:24
hardwirebut it's a strange world in netcfg-1.40ubuntu5/static.s18:25
hardwirec18:25
hardwireI have no idea why there is no check if the hostname & domain is set up before seeding values from dns18:25
cjwatsonas Joey says in the linked bug, it is "quite broken"18:37
hardwirecjwatson: I may be barking up the wrong tree here but.. even I could fix this.18:49
hardwireso what's the holdup?18:49
hardwireis there a decision pending on this very thing over at Debian HQ Global Inc?18:49
cjwatsonerr, no, just nobody's got round to it18:56
cjwatsonpersonally, every time I remember about it, there's a freeze of some sort on so I go and do something else :)18:56
cjwatsonit's rather delicate since you need to take into account a variety of code paths and preseeding possibilities18:57
hardwireI understand that all too well19:02
hardwired-i preseed/early_command string echo 127.0.0.1 localhost > /etc/hosts; echo 72.51.32.92 srv001.sb.brutetech.com srv00119:45
hardwiredoes anything need to be escaped/quoted there?19:45
hardwirenot sure how the parser for preseed stuff works19:45
hardwireit appears that netcfg.../static.c writes /etc/hosts AFTER the dns lookup19:46
hardwireso writing it before that time will cause the DNS lookup to resolve whatever I want.19:46
hardwirestore that in memory.. then override the /etc/hosts file with the correct information19:46
* hardwire waits for the remote install to verify his evil plan20:12
cr3if I want to modify the content of an iso, I will need to sign the Release file but how can I make my key available?20:13
cr3a simpler way might be to set debian-installer/allow-unauthenticated20:26
=== superm1|away is now known as superm1
hardwirecr3 you could..22:57
hardwireoh22:57
=== superm1 is now known as superm1|away

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