/srv/irclogs.ubuntu.com/2013/02/01/#ubuntu-installer.txt

cjwatsonI 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 netbooting00:00
xnox=/00:00
xnoxhow come this is not happening in jenkins/checkbox-satelite, or it does happen just not causing any problems?00:01
xnoxinteresting.00:01
cjwatsondunno00:01
cjwatsonthey may have a different live session setup00:01
xnoxtrue.00:01
xnoxi'll poke them, next time I sync up with them.00:02
johnsterdotcomwhat's the alternative to ubiquity?00:02
xnoxcjwatson: by the way, are you ok to try to include rsyslogd support in ubiquity cd.00:02
cjwatsonhow do you mean?00:06
johnsterdotcomso i am netbooting ....00:07
johnsterdotcom KERNEL B/5.556/fdva/vmlinuz00: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
johnsterdotcomi 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 ubiquity00:08
cjwatsonyou can certainly use the traditional debian-installer00:10
cjwatsonnetboot images are linked from http://cdimage.ubuntu.com/netboot/12.04/00:10
cjwatsonnetbooting ubiquity has always been a bit patchy TBH00:10
johnsterdotcomhttps://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/38806000:23
ubot2Ubuntu bug 388060 in ubiquity (Ubuntu) "netboot install of live CD results in unconfigured network interface" [Medium,Triaged]00:23
johnsterdotcomso 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
johnsterdotcomd-i preseed/late_command string 'rm /etc/network/interfaces' , perhaps00:52
johnsterdotcomhave 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
johnsterdotcomThanks for your help today00:55
pabs3which 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
pabs3I'm trying to track down why this is happening: https://lists.ubuntu.com/archives/ubuntu-installer/2009-August/000466.html04:28
infinitypabs3: You may find this relevant: https://lists.ubuntu.com/archives/ubuntu-installer/2013-January/001185.html04:49
infinitypabs3: Looks like your problem is simply that you're preseeding "multiselect" instead of "string" for your skip.04:50
infinityTemplate: tasksel/skip-tasks04:51
infinityType: string04:51
infinityDescription: Which tasks should not be shown or installed04:51
infinity This can be preseeded to cause certain tasks to be neither shown nor04:51
infinity installed, as if they were not available.04:51
pabs3I'm currently doing it slightly different to the post, using this (wasn't aware of skip-tasks yet): tasksel tasksel/first multiselect04:52
infinitypabs3: Looking at the code, it should be a space-seperated list (if just breaks them up with a shell for loop)04:53
pabs3which code is this?04:53
infinityThe code to tasksel.04:53
infinity(Hence the preseeds starting with tasksel/*)04:53
infinityAnyhow, "tasksel tasksel/skip-tasks string minimal standard" would skip attempts to install both, it looks like.04:54
pabs3great, thanks04:56
pabs3infinity: any idea if Ubuntu support pre-seeding via DHCP? http://www.debian.org/releases/stable/i386/apbs02.html.en#preseed-dhcp07:52
pabs3using ubuntu-12.04-alternate-i386.iso07:53
antaruswow that is a neat..uh...feature ;p07:54
cjwatsoninfinity: Nothing actually cares about the template type you preseed, FWIW.09:59
cjwatsonpabs3: That's been around for quite a while (2009 or so, I think), so it should work in 12.04, yes.10:00
nuclearbobcan somebody tell me how to preseed a hostname in ubiquity? d-i netcfg/get_hostname string blarg doesn't seem to do it15:02
nuclearbobI15:04
nuclearbob've also tried overwriting /root/etc/hostname in  a casper-bottom script, but that didn't seem to stick15:04
stgrabernuclearbob: "d-i netcfg/get_hostname string blarg" is right, though you can't put it in a preseed file that's read from the network15:15
nuclearbobstgraber: if I pack it into the initrd, should that work?15:15
stgrabernuclearbob: yeah, or just passs netcfg/get_hostname=blarg as a kernel cmdline argument15:15
nuclearbobstgraber: okay, I'll try that, thanks15:17
nuclearbobstgraber: 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 hostname15:30
=== zequence_ is now known as zequence
johnsterdotcomusing ubiquity on netboot ... these commands seem to fail / not be executed ...18:11
johnsterdotcomd-i preseed/late_command string 'rm /etc/network/interfaces'18:12
johnsterdotcomubiquity ubiquity/success_command string rm /etc/network/interfaces18:12
johnsterdotcomd-i preseed/late_command string string echo "john was here" > /root/john-di.txt18:12
johnsterdotcomubiquity ubiquity/success_command string echo "john was here" > /root/john-ubiquity.txt18:12
johnsterdotcomany idea why?18:12
johnsterdotcomubiquity/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
johnsterdotcomhmm18:21
cjwatsonjohnsterdotcom: right, so you want /target/etc/network/interfaces rather than just /e/n/i ...18:47
=== mpt_ is now known as mpt
cjwatsonalso, you can't stack multiple commands that way - lines in a preseed file set a key in a database, they aren't a scpt18:48
cjwatson*script18:48
cjwatsonso if you want multiple commands, something like:18:48
cjwatsonubiquity ubiquity/success_command string first command; second command18:49
cjwatsonand don't put quotes around the whole command the way you did in your first late_command example18:49
johnsterdotcomthank you ... i just learned that all the hard way ... but it is working now :)18:51
johnsterdotcomlooks 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 operations18:52
johnsterdotcomthis 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 best18:53
johnsterdotcomthanks for all this help18:53
johnsterdotcomSo 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!