cjwatson | I think this is a ubiquity bug - it always copies over /etc/network/interfaces from the live session, but casper causes that to include "manual" if you're netbooting | 00:00 |
---|---|---|
xnox | =/ | 00:00 |
xnox | how come this is not happening in jenkins/checkbox-satelite, or it does happen just not causing any problems? | 00:01 |
xnox | interesting. | 00:01 |
cjwatson | dunno | 00:01 |
cjwatson | they may have a different live session setup | 00:01 |
xnox | true. | 00:01 |
xnox | i'll poke them, next time I sync up with them. | 00:02 |
johnsterdotcom | what's the alternative to ubiquity? | 00:02 |
xnox | cjwatson: by the way, are you ok to try to include rsyslogd support in ubiquity cd. | 00:02 |
cjwatson | how do you mean? | 00:06 |
johnsterdotcom | so i am netbooting .... | 00:07 |
johnsterdotcom | KERNEL B/5.556/fdva/vmlinuz | 00:07 |
johnsterdotcom | APPEND auto=true priority=critical boot=casper netboot=nfs nfsroot=192.168.137.1:/scratch/nfs/pxe/install/B/5.556/fdva ip=:::::eth0:dhcp initrd=B/5.556/fdva/initrd.lz automatic-ubiquity file=/cdrom/preseed/fdva.seed vga=791 -- | 00:07 |
johnsterdotcom | i had originally had to edit the append line from 'ubiquity' to 'automatic-ubiquity' ... and I'm wondering if there a bug in ubiquity if there's some other alternative (say the traditional debian installer) that could be used instead of ubiquity | 00:08 |
cjwatson | you can certainly use the traditional debian-installer | 00:10 |
cjwatson | netboot images are linked from http://cdimage.ubuntu.com/netboot/12.04/ | 00:10 |
cjwatson | netbooting ubiquity has always been a bit patchy TBH | 00:10 |
johnsterdotcom | https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/388060 | 00:23 |
ubot2 | Ubuntu bug 388060 in ubiquity (Ubuntu) "netboot install of live CD results in unconfigured network interface" [Medium,Triaged] | 00:23 |
johnsterdotcom | so what if I wanted to execute the command 'rm /etc/network/interfaces' as one of the closing steps in the install, does ubiquity have a method for this? | 00:50 |
johnsterdotcom | d-i preseed/late_command string 'rm /etc/network/interfaces' , perhaps | 00:52 |
johnsterdotcom | have to go ... i'll post tomorrow how it went ... by hand, removing the interfaces file and restarting left the machine where I needed it. | 00:54 |
johnsterdotcom | Thanks for your help today | 00:55 |
pabs3 | which part of the Ubuntu alternate installer code would be responsible for tunning this command? apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -q -y install minimal^ standard^ | 04:28 |
pabs3 | I'm trying to track down why this is happening: https://lists.ubuntu.com/archives/ubuntu-installer/2009-August/000466.html | 04:28 |
infinity | pabs3: You may find this relevant: https://lists.ubuntu.com/archives/ubuntu-installer/2013-January/001185.html | 04:49 |
infinity | pabs3: Looks like your problem is simply that you're preseeding "multiselect" instead of "string" for your skip. | 04:50 |
infinity | Template: tasksel/skip-tasks | 04:51 |
infinity | Type: string | 04:51 |
infinity | Description: Which tasks should not be shown or installed | 04:51 |
infinity | This can be preseeded to cause certain tasks to be neither shown nor | 04:51 |
infinity | installed, as if they were not available. | 04:51 |
pabs3 | I'm currently doing it slightly different to the post, using this (wasn't aware of skip-tasks yet): tasksel tasksel/first multiselect | 04:52 |
infinity | pabs3: Looking at the code, it should be a space-seperated list (if just breaks them up with a shell for loop) | 04:53 |
pabs3 | which code is this? | 04:53 |
infinity | The code to tasksel. | 04:53 |
infinity | (Hence the preseeds starting with tasksel/*) | 04:53 |
infinity | Anyhow, "tasksel tasksel/skip-tasks string minimal standard" would skip attempts to install both, it looks like. | 04:54 |
pabs3 | great, thanks | 04:56 |
pabs3 | infinity: any idea if Ubuntu support pre-seeding via DHCP? http://www.debian.org/releases/stable/i386/apbs02.html.en#preseed-dhcp | 07:52 |
pabs3 | using ubuntu-12.04-alternate-i386.iso | 07:53 |
antarus | wow that is a neat..uh...feature ;p | 07:54 |
cjwatson | infinity: Nothing actually cares about the template type you preseed, FWIW. | 09:59 |
cjwatson | pabs3: That's been around for quite a while (2009 or so, I think), so it should work in 12.04, yes. | 10:00 |
nuclearbob | can somebody tell me how to preseed a hostname in ubiquity? d-i netcfg/get_hostname string blarg doesn't seem to do it | 15:02 |
nuclearbob | I | 15:04 |
nuclearbob | 've also tried overwriting /root/etc/hostname in a casper-bottom script, but that didn't seem to stick | 15:04 |
stgraber | nuclearbob: "d-i netcfg/get_hostname string blarg" is right, though you can't put it in a preseed file that's read from the network | 15:15 |
nuclearbob | stgraber: if I pack it into the initrd, should that work? | 15:15 |
stgraber | nuclearbob: yeah, or just passs netcfg/get_hostname=blarg as a kernel cmdline argument | 15:15 |
nuclearbob | stgraber: okay, I'll try that, thanks | 15:17 |
nuclearbob | stgraber: I passed netcfg/get_hostname=acer-veriton-04 as a kernel argument, and it shows up in /proc/cmdline, but the machine still appears to use ubuntu as the hostname | 15:30 |
=== zequence_ is now known as zequence | ||
johnsterdotcom | using ubiquity on netboot ... these commands seem to fail / not be executed ... | 18:11 |
johnsterdotcom | d-i preseed/late_command string 'rm /etc/network/interfaces' | 18:12 |
johnsterdotcom | ubiquity ubiquity/success_command string rm /etc/network/interfaces | 18:12 |
johnsterdotcom | d-i preseed/late_command string string echo "john was here" > /root/john-di.txt | 18:12 |
johnsterdotcom | ubiquity ubiquity/success_command string echo "john was here" > /root/john-ubiquity.txt | 18:12 |
johnsterdotcom | any idea why? | 18:12 |
johnsterdotcom | ubiquity/success_command: similar to preseed/late_command. Specify a command to be run when the install completes successfully (runs outside of /target, but /target is mounted when the command is invoked). | 18:21 |
johnsterdotcom | hmm | 18:21 |
cjwatson | johnsterdotcom: right, so you want /target/etc/network/interfaces rather than just /e/n/i ... | 18:47 |
=== mpt_ is now known as mpt | ||
cjwatson | also, you can't stack multiple commands that way - lines in a preseed file set a key in a database, they aren't a scpt | 18:48 |
cjwatson | *script | 18:48 |
cjwatson | so if you want multiple commands, something like: | 18:48 |
cjwatson | ubiquity ubiquity/success_command string first command; second command | 18:49 |
cjwatson | and don't put quotes around the whole command the way you did in your first late_command example | 18:49 |
johnsterdotcom | thank you ... i just learned that all the hard way ... but it is working now :) | 18:51 |
johnsterdotcom | looks like all my network configuration is for not as well ... the doc page for ubiquity is telling me straight-away that it's going to ignore netcfg operations | 18:52 |
johnsterdotcom | this is just the wrong tool for me, i think ... but don't have debian installer on the images i've inherited, so I'm doing my best | 18:53 |
johnsterdotcom | thanks for all this help | 18:53 |
johnsterdotcom | So I know there's a ubiquity/keep-installed key (from some other examples), but I don't see it documented here: https://wiki.ubuntu.com/UbiquityAutomation ... and I'm wanting to see if there's something like its inverse. Is there a listing of all available keys? | 19:53 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!