/srv/irclogs.ubuntu.com/2006/12/08/#ubuntu-installer.txt

=== lemao [n=lemao@24.2.130.50] has joined #ubuntu-installer
lemaogot an Edgy Eft installation issue. Is this the right place to ask?01:12
markit is01:13
lemaoTrying 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
lemaoThen I found this: https://launchpad.net/distros/ubuntu/+bug/7159401:24
lemaoNow I am stuck trying to replace the kernel from my install to a kernel that was not compiled with HIGHMEM64G support01:24
lemaoso I booted from the install cd again and enter the "rescue" mode01:25
lemaogot shell access01:25
lemaofound 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 success01:26
lemaoAny ideas?01:26
=== mark doesn't
lemaook. thanks01:47
cjwatsonlemao: you probably want linux-image-generic04:35
cjwatson(or linux-generic, for all the bits including restricted firmware/drivers)04:35
cjwatsonthat forum post recommends -686, which is gone in edgy, replaced by -generic04:36
cjwatsonI've shoved that bug over to the right place04:36
=== jerom1 [n=jeromeb@LSt-Amand-152-32-6-178.w82-127.abo.wanadoo.fr] has joined #ubuntu-installer
jerom1Hi all10:35
jerom1I use kickstart and i want define two kickstart %post section : %post --nochroot ... and %post (with chroot)10:36
jerom1but it seems second doesn't work, can you confirm ?10:37
=== jerom1 [n=jeromeb@LSt-Amand-152-32-6-178.w82-127.abo.wanadoo.fr] has left #ubuntu-installer []
=== jerom1 [n=jeromeb@LSt-Amand-152-32-6-178.w82-127.abo.wanadoo.fr] has joined #ubuntu-installer
=== allmanj [n=allmanj@66.249.86.140] has joined #ubuntu-installer
allmanjhi all - i was on yesterday looking for help customising debian-installer. Specifically, finding a way to stop it from scanning a mirror11:17
=== allmanj nods to cjwatson
allmanjbbias11:42
=== allmanj [n=allmanj@66.249.86.140] has joined #ubuntu-installer
=== cr3 [n=marc@pdpc/supporter/bronze/cr3] has joined #ubuntu-installer
cjwatsonjerom1: you only get one, I'm afraid, but that's OK because you can do 'chroot /target foo' in the --nochroot one02:23
cjwatsonhmm, actually, more than one *should* work02:23
cjwatsonorder of execution is not defined at the moment, though02:24
cjwatsonif you make them independent of what order they're executed in, then that should be enough; otherwise I'd like a bug report on kickseed02:25
allmanjcjwatson: i see you're alive. do you have time to give me a hand with my problem?02:25
cjwatsonallmanj: hi. any particular mirror, or all network mirrors, or what?02:25
cjwatsonand do you want to replace it with a different mirror?02:25
allmanji 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:25
allmanjthe install should be doable from the cd02:26
allmanji 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 it02:26
cjwatsonallmanj: preseeding apt-setup/use_mirror to false should disable the normal mirrors02:26
cjwatsonbase_installable isn't what you want02:27
allmanj*gasp*02:27
allmanjthere's an apt-setup/use_mirror option? i didn't spot that!02:27
cjwatsonto disable the security mirrors as well, preseed apt-setup/security_host to the empty string02:27
allmanjone sec while i test...02:27
cjwatsonI think that should be everything02:27
allmanji'll find out in a moment. regenerated an iso and attempting to install it on a vmware machine02:29
cjwatsonas sadly usual, this is probably only "documented" in the source ...02:30
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
cjwatsonfeel free to file a bug on installation-guide about the lack of documentation of apt-setup/use_mirror. apt-setup/security_host is documented though02:31
cjwatsonlook at .templates files02:31
allmanji spotted that one - have that option set already02:31
cjwatsonthen cross-reference with the source that db_get's them to find out what they do, if the .templates file doesn't say02:32
cjwatson(if it doesn't, it usually should)02:32
allmanjcheers02:32
allmanjhopefully i wont need to play with it too much more02:32
allmanjbtw - 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:32
allmanjit's installing the base system now, hopefully in a moment i'll see it skipping the scanning of the mirror...02:33
cjwatsonallmanj: preseed as normal, then 'd-i question/name seen false' in the preseed file02:34
cjwatson(after preseeding the value of the question)02:35
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
allmanjcrud. it's still "Scanning the mirror..." :(02:36
cjwatsonyou'll still see that, but it should only be brief?02:38
allmanjnope:( it's sticking there02:38
cjwatsonoh, when I said that base_installable wasn't what you want, it does need to exist in .disk on the CD02:38
allmanjgoing through my preseed now02:38
cjwatsoni.e. apt-setup/use_mirror=false is only functional if /cdrom/.disk/base_installable exists02:38
allmanjit does (it's there by default, right?)02:38
cjwatsonyes, should be, but it's easy to leave .disk out by accident so I thought I'd check02:38
allmanjit's me being stupid02:39
allmanjforgot to put in boolean02:39
cjwatsonmay be worth booting with DEBCONF_DEBUG=5 and punting the enormous syslog in my direction, if you can't figure it out02:39
cjwatsonoh, right, cool02:39
cjwatsonI dunno, half the time I wonder why we bother with having the type in the preseed file format02:40
cjwatsonbut it's probably too hard to change now02:40
cjwatsonand I think it does matter to debconf a bit more than to cdebconf (which basically doesn't care)02:40
allmanjdo you know what package is responsible for setting the hostname? trying to work out what the preseed option i'm looking for is02:42
=== lemao [n=lemao@c-24-2-130-50.hsd1.ct.comcast.net] has joined #ubuntu-installer
cjwatsonallmanj: netcfg02:59
cjwatsonthat one should be documented in the installation-guide ...02:59
allmanjyep - spotted it. netcfg/get_hostname02:59
cjwatsonright02:59
allmanjthanks. btw - i'm not sure i've come accross the full installation guide. can you send me a link?03:00
cjwatsonit's in the installation-guide-$arch package, e.g. installation-guide-i38603:01
cjwatsonthe versions on the web are rather out of date at present, I think03:01
cjwatsonyou'll probably find the appendix on preseeding useful03:01
allmanjhttps://help.ubuntu.com/6.10/ubuntu/installation-guide/i386/preseed-contents.html ?03:02
allmanjit's still scanning the mirror:(03:02
cjwatsonaha, yes, that would do it03:02
cjwatson13:39 < cjwatson> may be worth booting with DEBCONF_DEBUG=5 and punting the enormous syslog in my direction, if you can't figure it out03:02
cjwatsonthat applies, then03:02
allmanjcool - thanks.03:03
cjwatsonthanks for that link :) I didn't know they'd done that at last03:03
allmanjpasting my preseed options in. maybe you could eyeball them? i'll send you a link in a mo (whenever pastebin wakes up)03:04
allmanjd-i apt-setup/use_mirror boolean false is right, right (sanity check)03:06
cjwatsonsure03:06
cjwatson(to both)03:06
allmanjpastebin is crawling for me. know of another handy way to paste up stuff?03:06
cjwatsonpaste.ubuntu-nl.org?03:07
cjwatsonthere are a bunch of pastebins - I usually just google for pastebin and don't bother remembering a URL03:07
allmanjcheers: http://paste.ubuntu-nl.org/35914/03:07
allmanjmost of those options probably aren't needed. i've been playing around a lot03:08
allmanjwill attempt the debug now...03:08
cjwatsonis this dapper or edgy?03:09
allmanjdapper03:09
cjwatsonapt-setup/hostname doesn't exist03:09
cjwatsonanna-install apt-cdrom-setup is definitely weird - that should be done automatically by cdrom-detect03:09
allmanjas in, it's unused? fair enough - shouldn't cause any problems though03:09
allmanjyeah - 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 installed03:10
allmanjor would any of those options cause the problem?03:10
cjwatsonbase-config is dead - remove all that. tzconfig/gmt becomes 'd-i clock-setup/utc boolean true'03:10
cjwatsonuse '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
cjwatsonapt-setup/another doesn't exist any more03:11
cjwatsonprebaseconfig becomes finish-install03:11
cjwatsonanyway, this is just linting - I don't think any of this causes your problem03:11
allmanjin dapper? i'm not seeing finish-install in the packages on the cd...03:12
cjwatsonoh, you're right, that wasn't renamed until edgy03:12
cjwatsonnot really relevant to this conversation, but folks here may be interested: https://wiki.ubuntu.com/InstallerDevelopment03:13
cjwatsonit'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 perspective03:13
allmanjrebooting now with debug set to 5...03:14
=== jerom1 [n=jeromeb@LSt-Amand-152-32-6-178.w82-127.abo.wanadoo.fr] has left #ubuntu-installer []
allmanjk - worked out i can use nc with the install system. will get syslog once it gets as far as scanning03:20
allmanjspotted this in the syslog at this point:03:21
allmanjDec  8 05:51:09 debconf: --> SET apt-setup/use_mirror falseDec  8 05:51:09 debconf: <-- 10 apt-setup/use_mirror doesn't exist03:21
allmanjbit messy - but you see what i mean...03:21
allmanjhttp://paste.ubuntu-nl.org/35923/ is the syslog03:27
allmanjit's a little on the crazy big side though...03:27
cjwatsonthat's ok, it doesn't exist when the preseeds are being processed because that's done before apt-setup is retrieved03:35
cjwatsonhmm. what the ... oh, *dapper*.03:38
cjwatsoncrap. it's doable in edgt.03:39
cjwatsonedgy.03:39
allmanjapt-setup-mirror does seem to have some references to use_mirror03:39
cjwatsonnot in dapper, at least in the source I have03:39
cjwatsonwhich is probably canonical since I uploaded it :)03:40
allmanjit's definitely in apt-mirror-setup.templates from the initrd i extracted from the cd?03:40
cjwatsonapt-mirror-setup isn't in the initrd, so that's doubleplusweird03:41
cjwatsonfrom what URL did you download this CD?03:41
allmanjd'oh - ignore me03:42
allmanji is stupid03:42
allmanji'm not looking at the initrd03:42
allmanji'm looking at the debian-installer source03:42
allmanjd'oh03:42
cjwatsonoh, that would probably be much more current than what you have then03:42
cjwatsonespecially if you're e.g. looking at the upstream d-i source03:42
allmanji was. looked at the apt-setup source for dapper and you're right, it's not there03:43
allmanjideas?03:43
cjwatsonI can think of one horrible, horrible kludge03:43
allmanji'm listening...03:43
=== jerom1 [n=jeromeb@LSt-Amand-152-32-6-178.w82-127.abo.wanadoo.fr] has joined #ubuntu-installer
cjwatsonin 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
cjwatsonyou can't just remove it directly in early_command because that's run before apt-setup is retrieved03:44
cjwatsonbut a base-installer hook (or post-base-installer) will do03:44
allmanjthis is a smart kludge!03:44
allmanjone moment03:44
cjwatsonoh, you may have to mkdir /usr/lib/base-installer.d first03:44
cjwatsonYou can do basically anything with preseeding. The only question is how hard it's going to be. :)03:45
jerom1My chroot in post nochroot work fine, thanks. But now when i restart, i have errors :03:45
jerom1unable to mount root device03:45
jerom1kern panic03:45
jerom1unknown block device 0,003:45
cjwatson(and how much of the installer internals you need to know in order to get it done)03:45
cjwatsonjerom1: looks like it can't find the initramfs03:46
cjwatsoncheck out bootloader configuration and make sure it matches what's on the disk03:46
jerom1thanks, ok i look now03:47
allmanjcjwatson: testing kludge...03:48
allmanjd-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-kludge03:48
cjwatsonecho -e probably won't work in busybox; that's a bashism03:50
cjwatsonoh, no, it does work03:50
allmanjgrooviness03:51
cjwatsonI'd have done (echo '#! /bin/sh'; echo 'rm -f /usr/lib/apt-setup/generators/50mirror.ubuntu') > ... but whatever03:51
jerom1cjwatson : it seems grub is correct03:51
allmanjwould the redirect catch output from both commands? silly q. also - i beleive mines a little shorter and neater :p03:52
cjwatsonjerom1: I'm afraid it's going to be very hard to work this out remotely; this is something you'll probably have to debug yourself03:52
cjwatsonallmanj: yes, it would given the parentheses03:52
cjwatsonI just habitually avoid non-POSIX sh, that's all :)03:53
cjwatsonbut no matter03:53
allmanjkludge script appears to have been created correctly03:53
cjwatsonjerom1: might be worth doing zcat /boot/initrd.img-whatever | cpio -itto make sure it's a correct initramfs03:53
cjwatsoner, ... | cpio -it03:53
allmanjand it appears to have removed the 50mirror.ubuntu script!03:54
jerom1cjwatson, oki i test now great thanks03:54
allmanjit worked! score!03:58
allmanjthat has been bugging me for days!03:58
allmanjthis doesn't seem to work: d-i netcfg/get_hostname string console04:03
allmanjd-i netcfg/get_hostname seen false04:03
allmanji'm sure it's something stupid...04:03
allmanji have the priority set to critical if that's relevant04:07
cjwatsonit is - the hostname question's only asked at high04:09
cjwatsonone of the things you can't really do with preseeding yet is modify the priority at which a question gets asked - that's entirely programmatic04:09
cjwatsonI'd probably be inclined to drop back to the default priority (high) and preseed anything extra that gets asked as a result04:10
allmanjsounds sensible - thanks04:16
allmanjif i wanted to create a second, unprivileged user, would late_command be the way forward?04:45
cjwatsonyeah05:07
cjwatsonchroot /target adduser ...05:08
allmanjgroovy. 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 it05:10
allmanjcan i use preseeding for packages installed afterwards? it's prompting me for X things...05:11
cjwatsonno worries. yes, you can, just make sure the owner is the package and not 'd-i'05:13
cjwatsonshould be an example of doing that in the guide, I think ...05:14
allmanjexcellent - thanks05:14
allmanji'll make sure i've double checked the guide in future05:17
=== davidef [n=davide@host234-1-static.104-80-b.business.telecomitalia.it] has joined #ubuntu-installer
=== davidef [n=davide@host234-1-static.104-80-b.business.telecomitalia.it] has left #ubuntu-installer []
=== jerom1 [n=jeromeb@LSt-Amand-152-32-6-178.w82-127.abo.wanadoo.fr] has left #ubuntu-installer []
=== bat0 [n=mcoz@n1-24-205.dhcp.drexel.edu] has joined #ubuntu-installer

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