#ubuntu-installer 2006-12-01 <cr3> when installing 6.06 from the live cd on a 2.2Gb hard drive and if you select "erase entire disk", it will create 128Mb swap and 2.1Gb root but the installer will crash later due to a full disk. <cr3> Oddly, I have an installation of 6.06 which takes less than 2Gb <cr3> Perhaps some extra space is being taken during the installation process and then removed afterwards. <cjwatson> I think that's known <cjwatson> I need to attack ubiquity/partman's disk space checks in general <cr3> cjwatson: is my assessment right, though, that some extra space is being taken during the installation? <cjwatson> yes; ubiquity copies the whole live filesystem and then removes a few bits <cjwatson> I tried to get the high water mark but may not have got it quite right <cjwatson> for example, ubiquity itself is copied to the hard disk and then removed at the end <cr3> cjwatson: that rings a bell, I remember overhearing you speak about this during AllHands. that's a trick to make it possible for the live cd and installer to coexist in the same limited space, right? <cjwatson> yes, basically <cjwatson> the live CD installer doesn't use .debs, but copies the live filesystem instead <jerom1> cr3 : Hi, can you call me for support please ? <cr3> jerom1: sure, I tried calling you several times during the last few days. give me a few minutes, I'm on the phone right now. <jerom1> cr3 : ok no problem <cr3> jerom1: ok, I'm dialing... <jerom1> cr3: oki cool <cr3> jerom1: the number I'm dialing is not answering, please see my private messages <jerom1> cr3 : please see my response in private <cr3> cjwatson: might there be a workaround to install 6.06 on a 2Gb drive using the live cd? the alternate works fine, but the live cd is so much more user friendly <cjwatson> cr3: afraid not, if the contents of the live filesystem don't fit #ubuntu-installer 2006-12-02 <admin123> I noticed that the installer configures X automatic, how can I reinvoke it? <cjwatson> sudo dpkg-reconfigure xserver-xorg <cjwatson> if you want it not to ask lots of questions, sudo dpkg-reconfigure -phigh xserver-xorg <admin123> cjwatson, the progressbar worked fine, thanks in advance <admin123> cjwatson, how did the installer configure it? <admin123> I read something about debxconf ? some file in x11-common? <admin123> dexconf... <cjwatson> it just installs the xserver-xorg package (among many others) which configures it all by itself in its maintainer scripts <cjwatson> dexconf is involved somewhere in the middle of all that <cjwatson> progress bar> great! <admin123> We have amd systemes which have SIS chipets and intel systems which have Via chipsets. I was wondering how well X autoconfiguration is implented. for example: dpkg-reconfigure -f noninteractive -pcritical xserver-xorg dosn't modify my configuration, when I put a via cipset driver on a nv driver it still remains standing on the nv driver instead of chaning it. <mark> would it be easy to make the installer always automatically save the debug logs (http)? <mark> that would be very convenient in a number of cases <cjwatson> I'd rather not do that by default; I'd get complaints from people on insecure networks <cjwatson> might be possible to implement a boot option to do it though <cjwatson> file a bug on, er, I guess save-logs? <cjwatson> actually, the source package is installation-report <mark> of course not by default <mark> but it's no problem for us <mark> there's nothing secret in our logs <mark> so it's not easily possible through preseeding or early_command script? <cjwatson> you might be able to do it by calling /var/lib/dpkg/info/save-logs.postinst, or possibly pieces of it <cjwatson> and preseeding save-logs/menu <mark> alright, I will look into it <cjwatson> (web) <mark> yes <cjwatson> one tricky bit <cjwatson> you probably have to do it after network configuration, otherwise the httpd won't bind to the right network interface? <mark> yes <mark> but early_command is run after network config anyway <mark> in our case <mark> the preseed files are on the network <mark> actualy early_command reruns network config, but I can easily start this after that bit <cjwatson> true, if you're using preseed/url <mark> thanks! <cjwatson> I think for making it a standard bit of d-i it should probably be done at the end of netcfg <cjwatson> anyway, back to the weekend :) <mark> enjoy <mark> it's working :) #ubuntu-installer 2006-12-05 <cr3> how can I determine what d-i identifier corresponds to what prompt in the installer, like netcfg/choose_interface? it's usually obvious, but I'm just wondering how to understand the mapping * Starting logfile irclogs/ubuntu-installer.log * #ubuntu-installer [freenode-info] why register and identify? your IRC nick is how people know you. http://freenode.net/faq.shtml#nicksetup * Starting logfile irclogs/ubuntu-installer.log <cr3> if I want to preseed a netinstall, would it make sense to simply add the url of the preseed.txt in the pxelinux.cfg/default boot menu? <cr3> just to make sure, I need to build my own boot image to preseed a netinstall, right? <cjwatson> no, just boot it with preseed/url=blah <cjwatson> should fit somewhere in pxelinux.cfg <thom> cr3: no, just update pxelinux.cfg/default <cjwatson> 02:14 < cr3> how can I determine what d-i identifier corresponds to what prompt in the installer, like netcfg/choose_interface? it's usually obvious, but I'm just wondering how to understand the mapping <cjwatson> cr3: run with DEBCONF_DEBUG=5 and the installer will log what it's asking <cjwatson> like INPUT critical netcfg/choose_interface <cjwatson> or whatever <arnaud> hi <arnaud> i'm looking for a dapper installer (netboot) with a more recent kernel <cr3> cjwatson: so the installer syslog output returned "INPUT critical languagechooser/language-name-fb", so I added to my pressed file "d-i languagechooser/language-name-fb string English". however, that doesn't seem to take and I still get a prompt for the language <cr3> I tried changing "string" for "select", and I also tried removing "-fb" from language-name, still doesn't quite work <cr3> so, I tried using the example-preseed.txt and I still get all the prompts. syslog seems to show that the preseed file is being retrieve though: Dec 5 18:00:19 debconf: <-- 0 http://midir.certification.canonical.com/edgy/i386/preseed.txt <cr3> even if I specify languagechooser/language-name=English in the boot paramters, it still prompts for it :( <cjwatson> no, localechooser is weird, don't do that <cjwatson> see the installation-guide <cjwatson> you want debian-installer/locale=en_CA.UTF-8 (or whatever) <cjwatson> arnaud: no such exists, I'm afraid <cjwatson> unless you build it yourself <cjwatson> http://wiki.debian.org/DebianInstaller/Modify/CustomKernel is the closest documentation available but it isn't correct for Ubuntu; we don't have the separate linux-kernel-di-* step; instead our kernel packages build udebs directly <cjwatson> cr3: are you sure you get all the prompts, and not just the first few? <cr3> cjwatson: yes, sorry for the confusion <cjwatson> can I see the preseed file? <cjwatson> also your boot options <cr3> cjwatson: your suggestion worked to answer the language prompt worked, now working on console-setup/ask_detect or somesudh <cr3> cjwatson: sure, give me a minute to prepare the urls <cjwatson> console-setup/ask_detect should be straightforward <cjwatson> you know that everything that comes before the installer retrieves the preseed file has to be given on the kernel command line, right? <cr3> cjwatson: I downloaded the syslog file from the machine after the network detection and it seemed that the preseed file was being retrieved before language selection. <cjwatson> are you using kickstart? <cjwatson> the preseed file is only retrieved before language selection if you're using kickstart, absolutely not otherwise <cjwatson> I wrote the code to do that in kickstart, and it was bloody hard, so :) <cr3> cjwatson: that's just the impression I got from the syslog file, I might be misunderstanding the output so I'm uploading that file as well <cjwatson> cr3: this should all be explained in the appendix on preseeding in the installation-guide <cr3> cjwatson: http://people.ubuntu.com/~cr3/netinstall <cr3> cjwatson: I missed that part of the installation-guide but I'm reading it carefully now: B.2. Using preseeding <cjwatson> Dec 5 18:20:44 frontend: --> SET preseed/url http://midir.certification.canonical.com/edgy/i386/preseed.txt <cjwatson> Dec 5 18:20:44 frontend: <-- 0 value set <cjwatson> Dec 5 18:20:44 frontend: --> METAGET preseed/url type <cjwatson> Dec 5 18:20:44 frontend: <-- 0 string <cjwatson> Dec 5 18:20:44 frontend: --> FSET preseed/url seen true <cjwatson> Dec 5 18:20:44 frontend: <-- 0 true <cjwatson> you're looking at those lines, right? <cr3> Dec 5 18:20:45 debconf: --> GET preseed/url <cjwatson> that's actually the preseeding infrastructure copying stuff from the kernel command line into the debconf database - it doesn't actually fetch that URL until rather later <cjwatson> cr3: oh, I see your confusion. That's the main menu confirming that it should be including network-preseed in its menu. <cjwatson> look for "Menu item 'network-preseed' selected" - that's where it actually fetches the preseed file <cr3> aha: Dec 5 18:22:04 preseed: successfully loaded preseed file from http://midir.certification.canonical.com/edgy/i386/preseed.txt <cjwatson> rigt <cjwatson> right <cr3> ok, that makes sense now, thanks for holding my hand there :) <cjwatson> so drop console-tools/archs and kbd-chooser/method; those are obsolete in edgy <cjwatson> drop debian-installer/locale from the preseed file, as it's only useful on the boot prompt <cjwatson> er, kernel command line <cr3> cjwatson: gotcha, and I'll add console-setup/ask_detect to the kernel command line <cjwatson> and add console-setup/ask_detect=false console-setup/layoutcode=ca or something like that <cjwatson> maybe console-setup/variantcode=fr (for French Canadian) <cjwatson> I should have documented console-setup/ask_detect in installation-guide, though. I've fixed that in my local copy. <cr3> cjwatson: that's new in edgy though, right? <cjwatson> yes <cjwatson> what you had before would be fine in dapper, if you moved it to the kernel command line <cr3> I intend to test it later <mark> wth happened to vim in edgy <mark> it's so extremely painful <mark> the cursor keys not working etc <mark> I don't recall dapper doing that <thom> mark: apt-get install vim ; i rather suspect vim-tiny sets compat mode <mark> ok <mark> I'll have to pull that in in the default install then :) <cjwatson> right <cjwatson> need to fiddle with our configuration changes a bit - some of them massively predate vim-tiny and I think they're unnecessary now <thom> yeah, $work-standard deps on vim for that very reason <cjwatson> which would probably make vim a little more usable out of the box in Ubuntu, on top of using vim rather than vim-tiny <arnaud> cjwatson, it seems a bit complicated but anyway i think i'll have to do this <cjwatson> arnaud: yes, it is complicated. what's the actual problem? <cjwatson> arnaud: you might consider using edgy instead; it's probably a lot easier if you need a new kernel <arnaud> yes but i have to install dapper for lts :) <arnaud> is it possible to download and install dapper from an edgy cd or netboot? <arnaud> ie when i choose the mirror <arnaud> i think i have seen this in debian <cr3> arnaud: interesting question, that'd be nice! <thom> mirror/suite <thom> should do you, iirc <cr3> I get a red error message saying "No root file system is defined, please correct this from the partition menu." when adding "d-i partman-auto/init_automatically_partition select Erase entire disk" to my preseed file <arnaud> let's try. <cr3> I have updated my syslog file: http://people.ubuntu.com/~cr3/netinstall/syslog <cr3> the same error occurs for "d-i partman-auto/init_automatically_partition select Use the largest continuous free space" <cr3> the problem with using "partman-auto/init_automatically_partition" with something like "Erase entire disk: SCSI1 (0,0,0) (sda)..." is that the first disk might not be given the SCSI ID 1, it might be 5 for example. <cr3> hm, still getting "No root file system is defined" using several combinations including expert_recipe <cr3> syslog says something about "Adding swap on /dev/sda5" but nothing about / <cr3> interesting, I see this in syslog: SUBST partman/choose_partition CHOICES Guided partitioning, Help on partitioning, , SCSI5 (0\,0\,0) (sda) - 80.0 GB ATA ST380811AS, #1 primary 78.5 GB B K ext3 /media/sda1, #5 logical 1.5 GB F swap swap, , Undo changes to partitions, Finish partitioning and write changes to disk <cr3> so, that basically tells me there's a primary partition defined for /media/sda1 but no mountpoint defined <cr3> sorry for having to leave like that, has there been any action while I was gone :) <cr3> the reason why I was getting a "No root partition" error is that the expert_recipe doesn't seem to define the mountpoint properly, I'm seeing "/media/sda1" and "/media/sda2" in the partition disks step <mpt> cr3, no action while you were gone <cr3> mpt: darn, action is good :) <cr3> aha! I found a bug related to what I'm trying to do: https://launchpad.net/distros/ubuntu/+source/partman-auto/+bug/40186 #ubuntu-installer 2006-12-06 <cjwatson> grr, everybody who asked questions that I can answer has left <cjwatson> thom: setting mirror/suite to anything but the current release is unlikely to work in Ubuntu <cjwatson> there are no compatibility shims or anything and I've put no effort into keeping that working; the edgy installer for instance requires tasksel in main and customised for Ubuntu, which it wasn't in dapper <thom> ah, ok * Starting logfile irclogs/ubuntu-installer.log <cr3> I'm trying to use preseeding to erase the entire disk but it seems that I need to specify the whole string: Erase entire disk: SCSI5 (0,0,0) (sda) - 80.0 GB ATA ST380811AS <cr3> is there a way to specify a more generic string so that the same preseed file can be used across several machines? <cr3> weird, preseeded install took a fraction of the time to install compared to the kickstart install. trying again, just to make sure <cjwatson> cr3: don't preseed that question - see the installation guide which describes how to preseed partman-auto more correctly <cjwatson> specifically partman-auto/disk <cr3> cjwatson: I had tried that but it seems that the installer always prompts unless partman-auto/init_automatically_partition is defined <cr3> cjwatson: give me a sec, I could make sure <cjwatson> what release is this? <cr3> cjwatson: edgy <cjwatson> then just preseeding partman-auto/disk is definitely sufficient. make sure you've set it to the right value though (i.e. one of the device names in the output of parted_devices) <cr3> cjwatson: if this is indeed a bug rather than a misconfiguration on my part, I could file a bug on malone and test it on dapper and feisty afterwards <cjwatson> (in feisty, you need to preseed partman-auto/method to regular as well) <cjwatson> I don't see a bug yet <cjwatson> if you can reproduce it with DEBCONF_DEBUG=5 and are sure the preseed file is correct, a bug report on partman-auto with the installer syslog and a copy of the preseed file would be good <cjwatson> (DEBCONF_DEBUG=5 on the kernel command line; that produces a trace of all the installer's debconf interaction in the syslog. very handy) <cr3> cjwatson: thanks, specifying /dev/sda worked! I had tried the default value, /dev/discs/disc0/disc, without double checking that it actually existed. <cr3> that seemed to be the only part which prevented me from using preseeding, so I'm currently installing herd 1 with kickstart but I'll revert that to preseeding this afternoon. <cjwatson> where was that listed as the default? <cjwatson> /dev/discs is obsolete in edgy <cjwatson> (https://launchpad.net/distros/ubuntu/+spec/no-more-devfs) <cr3> cjwatson: I must've been looking at dapper documentation, I'm netinstalling that release as well :( <cjwatson> ah yes, quite important to use the right release's documentation for preseeding <cr3> just diff'ing the very useful example files would've probably given me a quick indication <mark> lol <mark> I had made it so that in early_command the debug logs webserver is started during every install <mark> so I was just reinstalling a squid server, turns out our load balancer pooled it during the install because the web server was up <mark> and probably returning 200 OK for anything #ubuntu-installer 2006-12-07 <cjwatson> heh, amusing <mark> joeyh's "hack" was serving wikipedia I am afraid ;-) <cjwatson> grin <cjwatson> unsuccessfully, I imagine <mark> well unless people were looking for [[Syslog] ] ;-) <mark> I guess I'll make it run on another port, and make our load balancer a bit more picky... <jerom1> hello <jerom1> how to load a kernel module in %pre ? it seems insmod or modprobe doesn't work ? <cjwatson> %pre is executed very early indeed. The modules you're trying to load might not be available yet. <cjwatson> What kind of modules? <jerom1> cciss <jerom1> in order to define dynamically size of partition <cjwatson> You can't load that in %pre. I suggest making your code to do that a preseed/early_command instead. <cjwatson> hmm <cjwatson> actually, wait, that won't work either ... <cjwatson> I think your best approach is, in your %pre script, to write out a script called /lib/partman/auto.d/10cciss (or something like that) to do the work; make sure it's executable and that you have "if [ -f /var/lib/partman/initial_auto ] ; then exit 0; fi" near the top of the script so that it only runs once <cjwatson> Could you file a bug on https://launchpad.net/distros/ubuntu/+source/kickseed/+filebug saying that it would be useful to have an easy way to run scripts just before partitioning in Kickstart? <cjwatson> a partman script shouldn't need to load cciss, by the way; it should already be loaded by the time that runs <jerom1> can you check my %pre here : http://sharengo.org/ks.cfg please ? <cjwatson> no, that's not right <cjwatson> you want something more like: <cjwatson> cat >/lib/partman/auto.d/10cciss <<EOF <cjwatson> #! /bin/sh <cjwatson> if [ -f /var/lib/partman/initial_auto ] ; then exit 0; fi <cjwatson> list-devices disk >/tmp/disk-debug.txt <cjwatson> # whatever else you need to do in here <cjwatson> EOF <cjwatson> chmod +x /lib/partman/auto.d/10cciss <jerom1> thank you very much of your assistance and your patience, I test <cjwatson> no problem; hope that works ... <cr3> feisty herd 1 netinstall prompts to detect the keyboard even though I specify console-setup/ask_detect=false in the boot parameters. syslog says GET console-setup/ask_detect, 0 true. /proc/cmdline says console-setup/ask_, so it seems the boot parameters get truncated. <cr3> reordering the boot parameters so that ask_detect is earlier doesn't prompt anymore but other parameters get truncated :( <cjwatson> show me your boot parameters? they may not all be needed <cr3> append vga=normal initrd=ubuntu-installer/i386/initrd.gz ramdisk_size=16417 root=/dev/ram rw -- DEBCONF_DEBUG=5 preseed/url=http://midir.certification.canonical.com/feisty/i386/preseed.txt debian-installer/locale=en_US console-setup/ask_detect=false console-setup/layoutcode=us <cjwatson> lose ramdisk_size=16417 root=/dev/ram rw and the spurious space <cr3> cheers <cjwatson> you might be able to shorten the URL by using a non-fully-qualified hostname? <cjwatson> oh, and preseed/url => url, debian-installer/locale => locale <cjwatson> there are aliases in place for those since edgy <cjwatson> that should do it <cjwatson> could you file a bug on preseed to add some aliases for console-setup? <cr3> cjwatson: sure, should I subscribe you to it? <cjwatson> I already get its bugmail automatically <cjwatson> (well, now, ubuntu-installer does, but that includes me) <jerom1> it's works, but i have anothe probem when i use : part ... --ondisk=cciss/c0d1, it seems ondisk is not supported, can you confirm ? <cjwatson> that's correct <cjwatson> you can probably just remove that; partman only lets you autopartition one disk anyway <jerom1> and i can configure my second volume in a post with cfdisk ... <allmanj> i was just on #ubuntu asking about this but then spotted this channel. Can anyone here help me with customising debian-installer so that it doesn't scan a mirror? <cjwatson> I'm on the phone now and then have to go out to training, but later, sure <cjwatson> this is the right place <allmanj> groovy - unfortunately i've to head home (i'm in ireland and this is the evening). But i'll drop back tomorrow. Thanks! #ubuntu-installer 2006-12-08 <lemao> got an Edgy Eft installation issue. Is this the right place to ask? <mark> it is <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" <lemao> Then I found this: https://launchpad.net/distros/ubuntu/+bug/71594 <lemao> Now I am stuck trying to replace the kernel from my install to a kernel that was not compiled with HIGHMEM64G support <lemao> so I booted from the install cd again and enter the "rescue" mode <lemao> got shell access <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 <lemao> Any ideas? * mark doesn't <lemao> ok. thanks <cjwatson> lemao: you probably want linux-image-generic <cjwatson> (or linux-generic, for all the bits including restricted firmware/drivers) <cjwatson> that forum post recommends -686, which is gone in edgy, replaced by -generic <cjwatson> I've shoved that bug over to the right place <jerom1> Hi all <jerom1> I use kickstart and i want define two kickstart %post section : %post --nochroot ... and %post (with chroot) <jerom1> but it seems second doesn't work, can you confirm ? <allmanj> hi all - i was on yesterday looking for help customising debian-installer. Specifically, finding a way to stop it from scanning a mirror * allmanj nods to cjwatson <allmanj> bbias <cjwatson> jerom1: you only get one, I'm afraid, but that's OK because you can do 'chroot /target foo' in the --nochroot one <cjwatson> hmm, actually, more than one *should* work <cjwatson> order of execution is not defined at the moment, though <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 <allmanj> cjwatson: i see you're alive. do you have time to give me a hand with my problem? <cjwatson> allmanj: hi. any particular mirror, or all network mirrors, or what? <cjwatson> and do you want to replace it with a different mirror? <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) <allmanj> the install should be doable from the cd <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 <cjwatson> allmanj: preseeding apt-setup/use_mirror to false should disable the normal mirrors <cjwatson> base_installable isn't what you want <allmanj> *gasp* <allmanj> there's an apt-setup/use_mirror option? i didn't spot that! <cjwatson> to disable the security mirrors as well, preseed apt-setup/security_host to the empty string <allmanj> one sec while i test... <cjwatson> I think that should be everything <allmanj> i'll find out in a moment. regenerated an iso and attempting to install it on a vmware machine <cjwatson> as sadly usual, this is probably only "documented" in the source ... <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! <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 <cjwatson> look at .templates files <allmanj> i spotted that one - have that option set already <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 <cjwatson> (if it doesn't, it usually should) <allmanj> cheers <allmanj> hopefully i wont need to play with it too much more <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" <allmanj> it's installing the base system now, hopefully in a moment i'll see it skipping the scanning of the mirror... <cjwatson> allmanj: preseed as normal, then 'd-i question/name seen false' in the preseed file <cjwatson> (after preseeding the value of the question) <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) <allmanj> crud. it's still "Scanning the mirror..." :( <cjwatson> you'll still see that, but it should only be brief? <allmanj> nope:( it's sticking there <cjwatson> oh, when I said that base_installable wasn't what you want, it does need to exist in .disk on the CD <allmanj> going through my preseed now <cjwatson> i.e. apt-setup/use_mirror=false is only functional if /cdrom/.disk/base_installable exists <allmanj> it does (it's there by default, right?) <cjwatson> yes, should be, but it's easy to leave .disk out by accident so I thought I'd check <allmanj> it's me being stupid <allmanj> forgot to put in boolean <cjwatson> may be worth booting with DEBCONF_DEBUG=5 and punting the enormous syslog in my direction, if you can't figure it out <cjwatson> oh, right, cool <cjwatson> I dunno, half the time I wonder why we bother with having the type in the preseed file format <cjwatson> but it's probably too hard to change now <cjwatson> and I think it does matter to debconf a bit more than to cdebconf (which basically doesn't care) <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 <cjwatson> allmanj: netcfg <cjwatson> that one should be documented in the installation-guide ... <allmanj> yep - spotted it. netcfg/get_hostname <cjwatson> right <allmanj> thanks. btw - i'm not sure i've come accross the full installation guide. can you send me a link? <cjwatson> it's in the installation-guide-$arch package, e.g. installation-guide-i386 <cjwatson> the versions on the web are rather out of date at present, I think <cjwatson> you'll probably find the appendix on preseeding useful <allmanj> https://help.ubuntu.com/6.10/ubuntu/installation-guide/i386/preseed-contents.html ? <allmanj> it's still scanning the mirror:( <cjwatson> aha, yes, that would do it <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 <cjwatson> that applies, then <allmanj> cool - thanks. <cjwatson> thanks for that link :) I didn't know they'd done that at last <allmanj> pasting my preseed options in. maybe you could eyeball them? i'll send you a link in a mo (whenever pastebin wakes up) <allmanj> d-i apt-setup/use_mirror boolean false is right, right (sanity check) <cjwatson> sure <cjwatson> (to both) <allmanj> pastebin is crawling for me. know of another handy way to paste up stuff? <cjwatson> paste.ubuntu-nl.org? <cjwatson> there are a bunch of pastebins - I usually just google for pastebin and don't bother remembering a URL <allmanj> cheers: http://paste.ubuntu-nl.org/35914/ <allmanj> most of those options probably aren't needed. i've been playing around a lot <allmanj> will attempt the debug now... <cjwatson> is this dapper or edgy? <allmanj> dapper <cjwatson> apt-setup/hostname doesn't exist <cjwatson> anna-install apt-cdrom-setup is definitely weird - that should be done automatically by cdrom-detect <allmanj> as in, it's unused? fair enough - shouldn't cause any problems though <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 <allmanj> or would any of those options cause the problem? <cjwatson> base-config is dead - remove all that. tzconfig/gmt becomes 'd-i clock-setup/utc boolean true' <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) <cjwatson> apt-setup/another doesn't exist any more <cjwatson> prebaseconfig becomes finish-install <cjwatson> anyway, this is just linting - I don't think any of this causes your problem <allmanj> in dapper? i'm not seeing finish-install in the packages on the cd... <cjwatson> oh, you're right, that wasn't renamed until edgy <cjwatson> not really relevant to this conversation, but folks here may be interested: https://wiki.ubuntu.com/InstallerDevelopment <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 <allmanj> rebooting now with debug set to 5... <allmanj> k - worked out i can use nc with the install system. will get syslog once it gets as far as scanning <allmanj> spotted this in the syslog at this point: <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 <allmanj> bit messy - but you see what i mean... <allmanj> http://paste.ubuntu-nl.org/35923/ is the syslog <allmanj> it's a little on the crazy big side though... <cjwatson> that's ok, it doesn't exist when the preseeds are being processed because that's done before apt-setup is retrieved <cjwatson> hmm. what the ... oh, *dapper*. <cjwatson> crap. it's doable in edgt. <cjwatson> edgy. <allmanj> apt-setup-mirror does seem to have some references to use_mirror <cjwatson> not in dapper, at least in the source I have <cjwatson> which is probably canonical since I uploaded it :) <allmanj> it's definitely in apt-mirror-setup.templates from the initrd i extracted from the cd? <cjwatson> apt-mirror-setup isn't in the initrd, so that's doubleplusweird <cjwatson> from what URL did you download this CD? <allmanj> d'oh - ignore me <allmanj> i is stupid <allmanj> i'm not looking at the initrd <allmanj> i'm looking at the debian-installer source <allmanj> d'oh <cjwatson> oh, that would probably be much more current than what you have then <cjwatson> especially if you're e.g. looking at the upstream d-i source <allmanj> i was. looked at the apt-setup source for dapper and you're right, it's not there <allmanj> ideas? <cjwatson> I can think of one horrible, horrible kludge <allmanj> i'm listening... <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' <cjwatson> you can't just remove it directly in early_command because that's run before apt-setup is retrieved <cjwatson> but a base-installer hook (or post-base-installer) will do <allmanj> this is a smart kludge! <allmanj> one moment <cjwatson> oh, you may have to mkdir /usr/lib/base-installer.d first <cjwatson> You can do basically anything with preseeding. The only question is how hard it's going to be. :) <jerom1> My chroot in post nochroot work fine, thanks. But now when i restart, i have errors : <jerom1> unable to mount root device <jerom1> kern panic <jerom1> unknown block device 0,0 <cjwatson> (and how much of the installer internals you need to know in order to get it done) <cjwatson> jerom1: looks like it can't find the initramfs <cjwatson> check out bootloader configuration and make sure it matches what's on the disk <jerom1> thanks, ok i look now <allmanj> cjwatson: testing kludge... <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 <cjwatson> echo -e probably won't work in busybox; that's a bashism <cjwatson> oh, no, it does work <allmanj> grooviness <cjwatson> I'd have done (echo '#! /bin/sh'; echo 'rm -f /usr/lib/apt-setup/generators/50mirror.ubuntu') > ... but whatever <jerom1> cjwatson : it seems grub is correct <allmanj> would the redirect catch output from both commands? silly q. also - i beleive mines a little shorter and neater :p <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 <cjwatson> allmanj: yes, it would given the parentheses <cjwatson> I just habitually avoid non-POSIX sh, that's all :) <cjwatson> but no matter <allmanj> kludge script appears to have been created correctly <cjwatson> jerom1: might be worth doing zcat /boot/initrd.img-whatever | cpio -itto make sure it's a correct initramfs <cjwatson> er, ... | cpio -it <allmanj> and it appears to have removed the 50mirror.ubuntu script! <jerom1> cjwatson, oki i test now great thanks <allmanj> it worked! score! <allmanj> that has been bugging me for days! <allmanj> this doesn't seem to work: d-i netcfg/get_hostname string console <allmanj> d-i netcfg/get_hostname seen false <allmanj> i'm sure it's something stupid... <allmanj> i have the priority set to critical if that's relevant <cjwatson> it is - the hostname question's only asked at high <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 <cjwatson> I'd probably be inclined to drop back to the default priority (high) and preseed anything extra that gets asked as a result <allmanj> sounds sensible - thanks <allmanj> if i wanted to create a second, unprivileged user, would late_command be the way forward? <cjwatson> yeah <cjwatson> chroot /target adduser ... <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 <allmanj> can i use preseeding for packages installed afterwards? it's prompting me for X things... <cjwatson> no worries. yes, you can, just make sure the owner is the package and not 'd-i' <cjwatson> should be an example of doing that in the guide, I think ... <allmanj> excellent - thanks <allmanj> i'll make sure i've double checked the guide in future #ubuntu-installer 2006-12-09 <bat0> hello <yong> heh <mark> cjwatson: I had our on-site tech investigate that "man-db" problem <mark> which isn't man-db but most often occurs during that postinst <mark> it seems to be a deadlock <mark> perl seems to try to read from a dpkg pipe <mark> and dpkg is wait4() for perl <mark> at least that's what my on-site tech tells me, a little hard to get more info <mark> I should just always run it in strace, then the deadlock does not happen due to other buffering/context switching ;) <cjwatson> perl would be debconf <cjwatson> so again, it's probably a failure to close some file descriptor, possibly racily <mark> not the commonly made mistake of writing and reading from a child processes's pipes at the same time? :) <cjwatson> I sincerely hope not <cjwatson> no, more usual with debconf is spawning something from a debconf confmodule that daemonises but forgets to close the debconf fds <cjwatson> man-db does background itself under certain circumstances, but I thought that (a) it didn't do that under the noninteractive frontend to avoid pretty much this problem and (b) it disconnected properly anyway ... <mark> ok <mark> yeah but it's not just man-db <mark> for example, today sometimes it got stuck on openssh <mark> and occasionally on other stuff <mark> just most often man-db <mark> today we reinstalled 20 servers and only *one* went through without problems <cjwatson> your libc isn't spawning some weird NSS thing, is it? <mark> ehm <mark> our libc? <mark> it's just the ubuntu installer :) <mark> not doing anything special in that regard <BadMike> hello can anyone help me installing software #ubuntu-installer 2006-12-11 * cjwatson takes a deep breath and advertises this channel on ubuntu-devel@lists <thom> oh gods <cjwatson> (trying to open up installer development) <mark> :) <mark> is there much need for diversification from d-i? <cjwatson> some, yeah; I try to keep it down <cjwatson> https://wiki.ubuntu.com/InstallerDevelopment has a few examples <allmanj> hey - i followed the customizing the install cd instructions about playing with apt-ftparchive but the installer keeps complaining about a lack of an installable kernel. The syslog talks about GET base-installer/kernel/override-image and GET base-installer/kernel/image-2.6 and then says "Found kernels '' <allmanj> Packages lists linux-image-386 <allmanj> and linux-image-156.14.161.142-386 <allmanj> the latter appears to provide linux-image which it appears is what base-installer is looking for <allmanj> i'm a little out of my element though. any ideas? <cjwatson> could I see all the syslog messages prefixed with "base-installer", please? <cjwatson> provides aren't important <allmanj> http://paste.ubuntu-nl.org/36424/ <allmanj> i just grepped for base-installer <allmanj> ah - it's the signature... <allmanj> i can probably fix this... <cjwatson> ah, yes, dapper required that <cjwatson> that should be fixed in edgy (though untested) <cjwatson> you'll need to fudge ubuntu-archive-keyring and the udeb <cjwatson> alternatively, you could extend the base-installer.d kludge ... <cjwatson> mkdir -p /target/etc/apt/apt.conf.d <cjwatson> cat > /target/etc/apt/apt.conf.d/00trustcdrom <<EOT <cjwatson> APT33ec:265c:71fe:e26d:2682:4ec2:aaa1:99abuthentication33ec:265c:71fe:e26d:2682:4ec2:aaa1:99abTrustCDROM "true"; <cjwatson> EOT <cjwatson> (sorry about crap indentation) <cjwatson> I'm not absolutely sure that that apt configuration key works in dapper, though, so you'd need to check <allmanj> i'll try the documented way to do the signing first... <cjwatson> yeah, mine is only if you want to be a crash test dummy :) <allmanj> fixed signing (i think). hopefully that'll do it... <allmanj> if not i'll trawl through the syslog myself before bothering you! <cjwatson> don't worry, the syslog is very verbose and sometimes I can make a more educated guess :) <allmanj> looks like it did the trick! booting into the system now to see if it's all good... <cjwatson> excellent <cjwatson> I really want to make sure at some point that that isn't an issue from edgy on <cjwatson> the signed CDs business was a bit of a mistake * allmanj nods <allmanj> all looks good on this cd - that was the problem <cjwatson> good to hear <allmanj> is late_command run before users are created or something? <cjwatson> no <cjwatson> er, let me double-check <cjwatson> I tell a lie; in dapper it was. this was changed in Debian before edgy <allmanj> curses. so i'll have to use late_command to create another script to be run after the users have been made? <zul> hey <LaserJock> cjwatson: so are you around? <LaserJock> cjwatson: nvm, I'll catch you at a better time, just wanted to chat about ubiquity modularity #ubuntu-installer 2006-12-12 <evand> good evening <LaserJock> evening * Starting logfile irclogs/ubuntu-installer.log <cjwatson> morning <LaserJock> hi <zakame> hi cjwatson , just read your mail on d-i <cjwatson> hm, not immensely useful for me to be told of new subscribers to ubuntu-installer; /me turns that off <heno> cjwatson: when someone reports a bug in 6.06 and then tries it on 6.06.1 and finds it fixed do we simply mark is as 'Fixed' without fully understanding the bug? (no logs forthcoming) eg bug 48117 <cjwatson> heno: might as well mark that fix-released; freezes are typically kernel bugs or bad CDs anyway, and we won't be able to diagnose it any further <heno> ok, thx * cjwatson imports partman-base into bzr <allmanj> cjwatson: hey - still having difficulty running a command after users are created on a dapper install cd. I created a file in /usr/lib/finish-install.d but it doesn't appear to be run... <cjwatson> allmanj: in dapper, you need to use /usr/lib/prebaseconfig.d <cjwatson> /usr/lib/finish-install.d was introduced in edgy <neutrinomass> Not sure if this is the right place but I just want to double check that I didn't wrongly reject this bug : https://bugs.launchpad.net/distros/ubuntu/+source/ubiquity/+bug/61598 <allmanj> cjwatson, thanks! hard to find that... <cjwatson> neutrinomass: this is the right place. Your rejection seems fair to me. <neutrinomass> cjwatson: Ok, thanks :-) <cjwatson> neutrinomass: it may not *necessarily* be a dead hard disk, though; the ubiquity/install/copying_error/hd_fault template in debian/ubiquity.templates in the ubiquity source package is roughly what I usually use for rejection messages in that case <cjwatson> there might be other reasons other than temperature as well; if you encounter any, do let me know ... <cjwatson> hmm, I wonder if there's any way that I could arrange for bzr pushes of installer branches to the supermirror to have their commit messages logged here <cjwatson> https://launchpad.net/products/bzr-cia looks interesting <neutrinomass> ahh, I didn't know that ubiquity printed such errors nowadays ... neat :) <cjwatson> yeah, I did that in edgy to try to reduce the number of bugs we got due to broken disks of various kinds <cjwatson> and in general it seems like a good idea to try to print saner crash messages where possible, if the crash is unavoidable ... <neutrinomass> I take it that nothing similar can be done for faulty RAM, right ? (I rejected such a bug today thinking it's impossible) <cjwatson> it's pretty hard since the bug could show up just about anywhere <cjwatson> which bug was that? <neutrinomass> just a sec, I lost it <neutrinomass> https://launchpad.net/bugs/70441 <cjwatson> no, I think you're right there <cjwatson> ok, hopefully we'll have the CIA bot here soonish; I've asked for it to track ubiquity and oem-config commits for now <Riddell> crivvens, a new channel for me <cjwatson> hello <Riddell> cjwatson: a kubuntu live session should be enough (it just needs python-qt4) but there's a bug in python-qt4 where the user interface compiler only works with python2.5 so it may need python2.5 installed until I fix the package (top of my todo list) <cjwatson> I can do that <cjwatson> if my test machine hadn't decided that DISPLAYING ANYTHING was for wimps <cjwatson> ah, there it is <Riddell> cjwatson: I didn't look at the xembed stuff yet, so the qtparted window pops up externally for now <cjwatson> ok, hopefully I'll manage to make that go away anyway <cjwatson> booting kubuntu now, will take a while to build stuff etc. * allmanj is still confused by dapper and prebaseconfig.d <cjwatson> http://cia.navi.cx/stats/author/cjwatson <- excellent, ubiquity commits <allmanj> i've created a script in there with a late_command and the permissions are good (i intentionally put in a crappy command at the end so the system wouldn't reboot) <allmanj> the script creates a directory for a user created earlier and copies a file from the cd into it <allmanj> but it doesn't appear to be run... <cjwatson> what's the script name? <allmanj> 01ssh_keys? <cjwatson> should be ok. is there an "info: Running /usr/lib/prebaseconfig.d/01ssh_keys" or "error: Unable to execute /usr/lib/prebaseconfig.d/01ssh_keys" message in syslog? <cjwatson> oh, hang on, you're creating the script with a late_command? <allmanj> yes? <allmanj> i need it to be run after the user has been created... <cjwatson> allmanj: that won't work, you need to create it with an early_command; by the time late_command is run, prebaseconfig has already decided what scripts in /usr/lib/prebaseconfig.d to execute <cjwatson> late_command being run from a prebaseconfig script itself <allmanj> ... oh. d'oh! <allmanj> thanks <cjwatson> allmanj: you'll need to set the number appropriately <cjwatson> allmanj: I suggest 07 rather than 01 <cjwatson> user-setup is run at 06 <allmanj> ah groovy - much thanks. That definitely would have got me! <cjwatson> sometimes I really wish I could update the dapper installer in non-trivial ways :) gets very confusing <cjwatson> but then I consider the pain that would cause, in turn ... <allmanj> aye. it's just a shame that just about all of the documentation is for edgy <cjwatson> there's the installation-guide package in dapper? <cjwatson> installation-guide-i386 <cjwatson> sorry if I've mentioned it to you before <cjwatson> it does have a few errors though - mentions base-config and such <cjwatson> Riddell: "pyuic: File generated with too recent version of Qt Designer (4.0 vs. 3.3.7)" <allmanj> that did the job there anyway - thanks a mil <cjwatson> good <Riddell> cjwatson: what says that? <Riddell> it may help to do: cp -r /usr/lib/python2.5/site-packages/PyQt4/uic/ /usr/lib/python2.4/site-packages/PyQt4/uic <Riddell> cjwatson: you don't need to copmile the .ui file any more, it does that at run time <Riddell> compile <cjwatson> Riddell: kdepyuic; you left that call in debian/rules <jerom1> Hi all <jerom1> When i add theses packages in my kickstart linux-headers-server, linux-image-server, linux-source my initrd is failed after reboot. Have you an idea ? <cjwatson> could you please give more detail, e.g. exact error messages? <jerom1> unmoutable device ... kernel panic after reboot <jerom1> and my grub conf is ok <cjwatson> check that the initramfs is being generated for the correct kernel flavour <cjwatson> #ubuntu-kernel will probably be better at this <jerom1> oki thanks <cjwatson> mind you, you shouldn't be installing linux-image-server in the %packages section in kickstart <cjwatson> jerom1: to use the server kernel, 'preseed base-installer/kernel/override-image string linux-image-server' (or linux-server to include restricted modules as well) is better <cjwatson> if you installed it in pkgsel it's entirely possible that the initramfs just wasn't generated <Riddell> cjwatson: I've not been making .debs out of it, only running it manually <cjwatson> my normal testing method is to use debuild to build a package; makes sure it keeps working ... <Riddell> packaging updated <cjwatson> note I just did some packaging work on my side too <cjwatson> to make desktop, pixmaps, po subdirs be built even if UBIQUITY_NO_GTK=1 <jerom1> how to install kernel image server with kickstart please ? <jerom1> i install generic, but i cannot install server, how to install this please ? <cjwatson> 14:44 < cjwatson> jerom1: to use the server kernel, 'preseed base-installer/kernel/override-image string linux-image-server' (or linux-server to include restricted modules as well) is better <cjwatson> requires edgy <cjwatson> oh, no, I tell a lie <cjwatson> I implemented base-installer/kernel/override-image in dapper <cjwatson> so just put the above in the main section of your kickstart file <cjwatson> Riddell: do we still need to build-dep on python-kde3-dev? <cjwatson> since kdepyuic isn't called in the build process any more <Riddell> cjwatson: no <cjwatson> excellent <jerom1> cjwatson> thanks i test tomorrow, bye <stgraber> hi #ubuntu-installer 2006-12-13 <jerom1> Hi, <jerom1> i use kickstart but i cannot use bash interpreter, can you confirm %post --interpreter doesn't work <cjwatson> you cannot use bash in kickstart; that is correct <cjwatson> it's always possible to avoid bashisms <cjwatson> it's usually a fairly trivial change <jerom1> is it correct if i comment test "if [ "$2" != /bin/sh ] ; then" in lib/kickseed/handlers/post.sh in initrd ? <jerom1> i must use bash, my datacenter sysadmin must use bash (in standard post install ...) <cjwatson> you cannot use bash. it is not there. <cjwatson> you only have busybox sh in the installer environment. <cjwatson> show me your %post script and I'll be entirely happy to convert it to ordinary sh for you; this is a trivial operation <cjwatson> in fact there's often nothing to convert <jerom1> oki I will convince my sysadmin <cjwatson> your sysadmin should recognise that there is a very large subset of bash which can be used in plain POSIX /bin/sh <cjwatson> (this isn't Solaris /bin/sh, which is considerably less capable) <jerom1> oki i demand to my sysadmin to show his bash script <cjwatson> hmm, well <cjwatson> actually <cjwatson> strictly speaking if you aren't using --nochroot then you ought to be allowed to use --interpreter /bin/bash <cjwatson> (sorry, I've only just woken up ...) <cjwatson> I had forgotten that --nochroot wasn't the default <cjwatson> I'll make that change in kickseed for feisty. As I say, though, it shouldn't block you, because all bash scripts can be rewritten to work in sh with at most minor modifications. <jerom1> oki good :-) <cjwatson> it's a bit more than just removing that check in post.sh, because /bin/sh is hardcoded elsewhere <cjwatson> not a huge change, but hard to describe over IRC <jerom1> oki <jerom1> thanks <cjwatson> ok, kickseed thus improved in feisty <cjwatson> thanks for the report; sorry I incorrectly dismissed it at first <jerom1> no problem, great thanks <Riddell> cjwatson: seems like qt4 ubiquity does the guided partitioning immediately after you click Next without warning, is that something I missed out or something that hasn't been put back in yet? <cjwatson> it should calculate the new partitions but not actually commit them until after the summary page. AFAIK that's working in gtk+qt3 <Riddell> yes, it was, I wonder what i missed out <cjwatson> the summary page implementation maybe? <cjwatson> that code path can be hairy ... <Riddell> is there an extra mainloop nesting there? the way I've coded it the flag will only know about 1 nesting <cjwatson> Riddell: there used to be, but isn't any more <Riddell> cjwatson: what changed? <cjwatson> it was made a whole lot less crackful <cjwatson> I rewrote the partitioning commit step <Riddell> so it should just work without coding anything special, instead of wiping my hard disk at the wrong time <cjwatson> do you see the summary page at all? <Riddell> choose Guided paritioning, click Next -> progress box saying hard disk being wiped <cjwatson> I'm not convinced by the on_steps_switch_page change you made <cjwatson> is there nothing like the aboutToShow signal any more? <cjwatson> IMO it should be done with signals to make sure that we handle page changes properly event if they aren't done via set_current_page <cjwatson> - if step == "stepWelcome": <cjwatson> + if step == str("stepWelcome"): <cjwatson> >>> "stepWelcome".__class__ <cjwatson> <type 'str'> <cjwatson> why that change? <cjwatson> other than that, unclear - trying it myself now <Riddell> it wasn't matching, at least on one of the places in that if bunch, I didn't look into why <cjwatson> brb, parents * Riddell off out, going to give this holiday thing a try <cjwatson> have fun :) I'll see what I can fix up <cjwatson> Riddell: can't reproduce here <cjwatson> I had to fix a partman problem to stop parted_server segfaulting and see the content of the autopartitioning page at all, but that's not your problem ... <allmanj> hey - i'm looking for packages on the dapper cd that aren't installed by ubuntu-standard or ubuntu-desktop so i can remove them as i'm after creeping a little over burnable size... <allmanj> that, or i'd like to modify what counts as "ubuntu-desktop" <cjwatson> allmanj: look at the Task lines in the Packages file and/or study https://wiki.ubuntu.com/SeedManagement <allmanj> dapper appears to have an ubuntu-desktop package... is this not used? * allmanj looks at the ship seed <cjwatson> sure, it's used <cjwatson> but as a component of the task ... <cjwatson> language packs are a normal-ish thing to strip out <allmanj> i'm thinking the samba server is a candidate <cjwatson> sounds reasonable <allmanj> aye - it's big and i'm pretty sure i'll never need it <macogw> what does ubiquity show up as in the system monitor's processes list? it froze installing feisty -.- <macogw> the X button in the top right doesnt do anything. minimize and maximize work just dandy #ubuntu-installer 2006-12-14 <jerom1> Hi Colin, <jerom1> I convert my bash post script to an sh script, but i have two problems : <jerom1> cat > /etc/network/if-up.d/forcingspeed.tmp << EOF <jerom1> #!/bin/bash <jerom1> if [ "$IFACE" != "lo" ] ; then <jerom1> /usr/sbin/ethtool -s $IFACE speed 100 duplex full autoneg off <jerom1> fi <jerom1> EOF <jerom1> in bash my $IFACE is preserved but it interpreted in sh <jerom1> sorry my script : <jerom1> cat > /etc/network/if-up.d/forcingspeed.tmp << EOF <jerom1> #!/bin/bash <jerom1> if [ "IFACE" != "lo" ] ; then <jerom1> /usr/sbin/ethtool -s IFACE speed 100 duplex full autoneg off <jerom1> fi <jerom1> EOF <jerom1> cat /etc/network/if-up.d/forcingspeed.tmp | sed -e 's#IFACE#\$IFACE#g' > /etc/network/if-up.d/forcingspeed <jerom1> do you know an sh equivalent to "let" bash command ? <cjwatson> give me an example <cjwatson> IFACE without a preceding $ looks wrong. What's that script supposed to do? <cjwatson> oh, I see <cjwatson> no, don't do that silly
{'channel': 'ubuntu-installer', 'month': 12}