[01:12] <lemao> got an Edgy Eft installation issue. Is this the right place to ask?
[01:13] <mark> it is
[01:24] <lemao> Trying to install Edgy Eft Server in MacBookPro Parallels VM but I am getting the following when booting for the first time after the install: "Unknown interrupt or fault at EIP"
[01:24] <lemao> Then I found this: https://launchpad.net/distros/ubuntu/+bug/71594
[01:24] <lemao> Now I am stuck trying to replace the kernel from my install to a kernel that was not compiled with HIGHMEM64G support
[01:25] <lemao> so I booted from the install cd again and enter the "rescue" mode
[01:25] <lemao> got shell access
[01:26] <lemao> found many kernel images using apt-cache search linux-image, but dont know which one to use. Tried one that is recommended here: http://forum.parallels.com/post25984-2.html without success
[01:26] <lemao> Any ideas?
[01:47] <lemao> ok. thanks
[04:35] <cjwatson> lemao: you probably want linux-image-generic
[04:35] <cjwatson> (or linux-generic, for all the bits including restricted firmware/drivers)
[04:36] <cjwatson> that forum post recommends -686, which is gone in edgy, replaced by -generic
[04:36] <cjwatson> I've shoved that bug over to the right place
[10:35] <jerom1> Hi all
[10:36] <jerom1> I use kickstart and i want define two kickstart %post section : %post --nochroot ... and %post (with chroot)
[10:37] <jerom1> but it seems second doesn't work, can you confirm ?
[11:17] <allmanj> hi all - i was on yesterday looking for help customising debian-installer. Specifically, finding a way to stop it from scanning a mirror
[11:42] <allmanj> bbias
[02:23] <cjwatson> jerom1: you only get one, I'm afraid, but that's OK because you can do 'chroot /target foo' in the --nochroot one
[02:23] <cjwatson> hmm, actually, more than one *should* work
[02:24] <cjwatson> order of execution is not defined at the moment, though
[02:25] <cjwatson> if you make them independent of what order they're executed in, then that should be enough; otherwise I'd like a bug report on kickseed
[02:25] <allmanj> cjwatson: i see you're alive. do you have time to give me a hand with my problem?
[02:25] <cjwatson> allmanj: hi. any particular mirror, or all network mirrors, or what?
[02:25] <cjwatson> and do you want to replace it with a different mirror?
[02:25] <allmanj> i want to disable scanning of all mirrors. the idea is that the modified cd could run on a machine without network connectivity (or with limited connectivity)
[02:26] <allmanj> the install should be doable from the cd
[02:26] <allmanj> i find mention of respecting base_installable when i'm trawling through the code but i'm really at a loss as to how to take advantage of it
[02:26] <cjwatson> allmanj: preseeding apt-setup/use_mirror to false should disable the normal mirrors
[02:27] <cjwatson> base_installable isn't what you want
[02:27] <allmanj> *gasp*
[02:27] <allmanj> there's an apt-setup/use_mirror option? i didn't spot that!
[02:27] <cjwatson> to disable the security mirrors as well, preseed apt-setup/security_host to the empty string
[02:27] <allmanj> one sec while i test...
[02:27] <cjwatson> I think that should be everything
[02:29] <allmanj> i'll find out in a moment. regenerated an iso and attempting to install it on a vmware machine
[02:30] <cjwatson> as sadly usual, this is probably only "documented" in the source ...
[02:31] <allmanj> :( i've tried various techniques to work out preseed options from the source but apparently they're not complete as they didn't yield that one!
[02:31] <cjwatson> feel free to file a bug on installation-guide about the lack of documentation of apt-setup/use_mirror. apt-setup/security_host is documented though
[02:31] <cjwatson> look at .templates files
[02:31] <allmanj> i spotted that one - have that option set already
[02:32] <cjwatson> then cross-reference with the source that db_get's them to find out what they do, if the .templates file doesn't say
[02:32] <cjwatson> (if it doesn't, it usually should)
[02:32] <allmanj> cheers
[02:32] <allmanj> hopefully i wont need to play with it too much more
[02:32] <allmanj> btw - is there an easy way to change the defaults? For example, i want to prompt for the hostname but want a default other than "ubuntu"
[02:33] <allmanj> it's installing the base system now, hopefully in a moment i'll see it skipping the scanning of the mirror...
[02:34] <cjwatson> allmanj: preseed as normal, then 'd-i question/name seen false' in the preseed file
[02:35] <cjwatson> (after preseeding the value of the question)
[02:36] <cjwatson> (or if you want to do that for all questions, there's a giant preseed/interactive override - I really just added that for kickstart, though)
[02:36] <allmanj> crud. it's still "Scanning the mirror..." :(
[02:38] <cjwatson> you'll still see that, but it should only be brief?
[02:38] <allmanj> nope:( it's sticking there
[02:38] <cjwatson> oh, when I said that base_installable wasn't what you want, it does need to exist in .disk on the CD
[02:38] <allmanj> going through my preseed now
[02:38] <cjwatson> i.e. apt-setup/use_mirror=false is only functional if /cdrom/.disk/base_installable exists
[02:38] <allmanj> it does (it's there by default, right?)
[02:38] <cjwatson> yes, should be, but it's easy to leave .disk out by accident so I thought I'd check
[02:39] <allmanj> it's me being stupid
[02:39] <allmanj> forgot to put in boolean
[02:39] <cjwatson> may be worth booting with DEBCONF_DEBUG=5 and punting the enormous syslog in my direction, if you can't figure it out
[02:39] <cjwatson> oh, right, cool
[02:40] <cjwatson> I dunno, half the time I wonder why we bother with having the type in the preseed file format
[02:40] <cjwatson> but it's probably too hard to change now
[02:40] <cjwatson> and I think it does matter to debconf a bit more than to cdebconf (which basically doesn't care)
[02:42] <allmanj> do you know what package is responsible for setting the hostname? trying to work out what the preseed option i'm looking for is
[02:59] <cjwatson> allmanj: netcfg
[02:59] <cjwatson> that one should be documented in the installation-guide ...
[02:59] <allmanj> yep - spotted it. netcfg/get_hostname
[02:59] <cjwatson> right
[03:00] <allmanj> thanks. btw - i'm not sure i've come accross the full installation guide. can you send me a link?
[03:01] <cjwatson> it's in the installation-guide-$arch package, e.g. installation-guide-i386
[03:01] <cjwatson> the versions on the web are rather out of date at present, I think
[03:01] <cjwatson> you'll probably find the appendix on preseeding useful
[03:02] <allmanj> https://help.ubuntu.com/6.10/ubuntu/installation-guide/i386/preseed-contents.html ?
[03:02] <allmanj> it's still scanning the mirror:(
[03:02] <cjwatson> aha, yes, that would do it
[03:02] <cjwatson> 13:39 < cjwatson> may be worth booting with DEBCONF_DEBUG=5 and punting the enormous syslog in my direction, if you can't figure it out
[03:02] <cjwatson> that applies, then
[03:03] <allmanj> cool - thanks.
[03:03] <cjwatson> thanks for that link :) I didn't know they'd done that at last
[03:04] <allmanj> pasting my preseed options in. maybe you could eyeball them? i'll send you a link in a mo (whenever pastebin wakes up)
[03:06] <allmanj> d-i apt-setup/use_mirror boolean false is right, right (sanity check)
[03:06] <cjwatson> sure
[03:06] <cjwatson> (to both)
[03:06] <allmanj> pastebin is crawling for me. know of another handy way to paste up stuff?
[03:07] <cjwatson> paste.ubuntu-nl.org?
[03:07] <cjwatson> there are a bunch of pastebins - I usually just google for pastebin and don't bother remembering a URL
[03:07] <allmanj> cheers: http://paste.ubuntu-nl.org/35914/
[03:08] <allmanj> most of those options probably aren't needed. i've been playing around a lot
[03:08] <allmanj> will attempt the debug now...
[03:09] <cjwatson> is this dapper or edgy?
[03:09] <allmanj> dapper
[03:09] <cjwatson> apt-setup/hostname doesn't exist
[03:09] <cjwatson> anna-install apt-cdrom-setup is definitely weird - that should be done automatically by cdrom-detect
[03:09] <allmanj> as in, it's unused? fair enough - shouldn't cause any problems though
[03:10] <allmanj> yeah - i was trying some weird things. my logic was that if apt-cdrom-setup provides apt-mirror maybe i can stop apt-mirror from being installed
[03:10] <allmanj> or would any of those options cause the problem?
[03:10] <cjwatson> base-config is dead - remove all that. tzconfig/gmt becomes 'd-i clock-setup/utc boolean true'
[03:11] <cjwatson> use 'd-i apt-setup/...' rather than 'base-config apt-setup/...' (saves the options hanging around post-reboot, but won't cause this problem)
[03:11] <cjwatson> apt-setup/another doesn't exist any more
[03:11] <cjwatson> prebaseconfig becomes finish-install
[03:11] <cjwatson> anyway, this is just linting - I don't think any of this causes your problem
[03:12] <allmanj> in dapper? i'm not seeing finish-install in the packages on the cd...
[03:12] <cjwatson> oh, you're right, that wasn't renamed until edgy
[03:13] <cjwatson> not really relevant to this conversation, but folks here may be interested: https://wiki.ubuntu.com/InstallerDevelopment
[03:13] <cjwatson> it's a fairly quick run-through, but I'd be interested in where it needs to be fleshed out, as I don't have the necessary perspective
[03:14] <allmanj> rebooting now with debug set to 5...
[03:20] <allmanj> k - worked out i can use nc with the install system. will get syslog once it gets as far as scanning
[03:21] <allmanj> spotted this in the syslog at this point:
[03:21] <allmanj> Dec  8 05:51:09 debconf: --> SET apt-setup/use_mirror falseDec  8 05:51:09 debconf: <-- 10 apt-setup/use_mirror doesn't exist
[03:21] <allmanj> bit messy - but you see what i mean...
[03:27] <allmanj> http://paste.ubuntu-nl.org/35923/ is the syslog
[03:27] <allmanj> it's a little on the crazy big side though...
[03:35] <cjwatson> that's ok, it doesn't exist when the preseeds are being processed because that's done before apt-setup is retrieved
[03:38] <cjwatson> hmm. what the ... oh, *dapper*.
[03:39] <cjwatson> crap. it's doable in edgt.
[03:39] <cjwatson> edgy.
[03:39] <allmanj> apt-setup-mirror does seem to have some references to use_mirror
[03:39] <cjwatson> not in dapper, at least in the source I have
[03:40] <cjwatson> which is probably canonical since I uploaded it :)
[03:40] <allmanj> it's definitely in apt-mirror-setup.templates from the initrd i extracted from the cd?
[03:41] <cjwatson> apt-mirror-setup isn't in the initrd, so that's doubleplusweird
[03:41] <cjwatson> from what URL did you download this CD?
[03:42] <allmanj> d'oh - ignore me
[03:42] <allmanj> i is stupid
[03:42] <allmanj> i'm not looking at the initrd
[03:42] <allmanj> i'm looking at the debian-installer source
[03:42] <allmanj> d'oh
[03:42] <cjwatson> oh, that would probably be much more current than what you have then
[03:42] <cjwatson> especially if you're e.g. looking at the upstream d-i source
[03:43] <allmanj> i was. looked at the apt-setup source for dapper and you're right, it's not there
[03:43] <allmanj> ideas?
[03:43] <cjwatson> I can think of one horrible, horrible kludge
[03:43] <allmanj> i'm listening...
[03:44] <cjwatson> in a preseed/early_command, write out /usr/lib/base-installer.d/01apt-setup-kludge (remember to make it executable) that does 'rm -f /usr/lib/apt-setup/generators/50mirror.ubuntu'
[03:44] <cjwatson> you can't just remove it directly in early_command because that's run before apt-setup is retrieved
[03:44] <cjwatson> but a base-installer hook (or post-base-installer) will do
[03:44] <allmanj> this is a smart kludge!
[03:44] <allmanj> one moment
[03:44] <cjwatson> oh, you may have to mkdir /usr/lib/base-installer.d first
[03:45] <cjwatson> You can do basically anything with preseeding. The only question is how hard it's going to be. :)
[03:45] <jerom1> My chroot in post nochroot work fine, thanks. But now when i restart, i have errors :
[03:45] <jerom1> unable to mount root device
[03:45] <jerom1> kern panic
[03:45] <jerom1> unknown block device 0,0
[03:45] <cjwatson> (and how much of the installer internals you need to know in order to get it done)
[03:46] <cjwatson> jerom1: looks like it can't find the initramfs
[03:46] <cjwatson> check out bootloader configuration and make sure it matches what's on the disk
[03:47] <jerom1> thanks, ok i look now
[03:48] <allmanj> cjwatson: testing kludge...
[03:48] <allmanj> d-i preseed/early_command string mkdir -p /usr/lib/base-installer.d; echo -e '#!/bin/sh\nrm -f /usr/lib/apt-setup/generators/50mirror.ubuntu' > /usr/lib/base-installer.d/01apt-setup-kludge; chmod a+rx /usr/lib/base-installer.d/01apt-setup-kludge
[03:50] <cjwatson> echo -e probably won't work in busybox; that's a bashism
[03:50] <cjwatson> oh, no, it does work
[03:51] <allmanj> grooviness
[03:51] <cjwatson> I'd have done (echo '#! /bin/sh'; echo 'rm -f /usr/lib/apt-setup/generators/50mirror.ubuntu') > ... but whatever
[03:51] <jerom1> cjwatson : it seems grub is correct
[03:52] <allmanj> would the redirect catch output from both commands? silly q. also - i beleive mines a little shorter and neater :p
[03:52] <cjwatson> jerom1: I'm afraid it's going to be very hard to work this out remotely; this is something you'll probably have to debug yourself
[03:52] <cjwatson> allmanj: yes, it would given the parentheses
[03:53] <cjwatson> I just habitually avoid non-POSIX sh, that's all :)
[03:53] <cjwatson> but no matter
[03:53] <allmanj> kludge script appears to have been created correctly
[03:53] <cjwatson> jerom1: might be worth doing zcat /boot/initrd.img-whatever | cpio -itto make sure it's a correct initramfs
[03:53] <cjwatson> er, ... | cpio -it
[03:54] <allmanj> and it appears to have removed the 50mirror.ubuntu script!
[03:54] <jerom1> cjwatson, oki i test now great thanks
[03:58] <allmanj> it worked! score!
[03:58] <allmanj> that has been bugging me for days!
[04:03] <allmanj> this doesn't seem to work: d-i netcfg/get_hostname string console
[04:03] <allmanj> d-i netcfg/get_hostname seen false
[04:03] <allmanj> i'm sure it's something stupid...
[04:07] <allmanj> i have the priority set to critical if that's relevant
[04:09] <cjwatson> it is - the hostname question's only asked at high
[04:09] <cjwatson> one of the things you can't really do with preseeding yet is modify the priority at which a question gets asked - that's entirely programmatic
[04:10] <cjwatson> I'd probably be inclined to drop back to the default priority (high) and preseed anything extra that gets asked as a result
[04:16] <allmanj> sounds sensible - thanks
[04:45] <allmanj> if i wanted to create a second, unprivileged user, would late_command be the way forward?
[05:07] <cjwatson> yeah
[05:08] <cjwatson> chroot /target adduser ...
[05:10] <allmanj> groovy. i think i'm fairly happy that i've got the system i wanted. Thanks a million for your hellp - i'd be still scratching my head and frowning a lot without it
[05:11] <allmanj> can i use preseeding for packages installed afterwards? it's prompting me for X things...
[05:13] <cjwatson> no worries. yes, you can, just make sure the owner is the package and not 'd-i'
[05:14] <cjwatson> should be an example of doing that in the guide, I think ...
[05:14] <allmanj> excellent - thanks
[05:17] <allmanj> i'll make sure i've double checked the guide in future