/srv/irclogs.ubuntu.com/2014/05/16/#ubuntu-installer.txt

pmatulisd-i     late_command string in-target echo "10.230.4.32 preseed.example.com" >> /etc/hosts00:53
pmatulisCarlFK: any idea why this does not work? ↑00:53
CarlFKpmatulis: looks ok to me. check the install logs that are saved to /var/log/installer/syslog00:55
pmatulisCarlFK: yeah, says 'late_command doesn't exist'01:00
CarlFKpmatulis: what says that?01:01
CarlFKcarl@twist:~/Dropbox/Public$ sudo grep late_command /var/log/installer/syslog01:01
CarlFKMay  2 18:14:37 debconf: --> GET preseed/late_command01:01
CarlFKI may have more in there than you because I boot the installer with append initrd=ubuntu/trusty/amd64/initrd.gz root=/dev/rd/0 rw auto=true netcfg/wireless_wep= interface=auto hostname= netcfg/dhcpv6_timeout=5 DEBCONF_DEBUG=501:04
CarlFKDEBCONF_DEBUG=5 - try adding that01:04
pmatulisi have debug, sec01:04
pmatulisCarlFK: http://imagebin.ca/v/1MYbTEWZHD1o01:07
CarlFKgood start, that is where it is set (i guess when the file is parsed)  later in that file should be where it is executed01:09
CarlFKscreen shot because it is running in a vm?01:10
pmatulisit's a vm.  i could have ssh'd but it was right there so...01:10
pmatulisthat screenie shows the only instances of the string '/hosts'01:12
CarlFKlate_command ?01:13
CarlFKMay 13 22:03:33 debconf: --> GET preseed/late_command01:14
CarlFKMay 13 22:03:33 preseed: running preseed command preseed/late_command: cd /target/tmp && wget http://$url/lc/late.sh && chmod u+x late.sh && chroot /target /tmp/late.sh $(debconf-get mirror/suite) $(debconf-get passwd/username)01:14
pmatulisCarlFK: not much there01:17
pmatulishttp://paste.ubuntu.com/7470744/01:17
CarlFKd-i preseed/late_command string cd ...01:19
CarlFKI think you are missing "string" ?01:19
CarlFKer, never mind01:20
pmatulisgoing to bed, be back here tomorrow01:21
CarlFKlong shot: ...01:21
CarlFKhold up ;)01:21
pmatulishuh?01:22
CarlFKya know how this doesn't work: sudo echo foo>>/etc/hosts ?01:22
CarlFKcuz the sudo only sudo's echo foo, but not >>/etc/hosts ?01:22
CarlFKI am wondering if the results of in-target get appended to your installer's /etc/hosts01:23
pmatulisnothing gets appended01:23
CarlFKright01:24
CarlFKmabye.01:24
CarlFKin-target echo "10.230.4.32 preseed.example.com" >> /etc/hosts01:25
CarlFKer, how do you know?01:25
CarlFKit may be in  installer's /etc/hosts  not /target/etc/hosts01:26
CarlFKor in-target runs the command in a shell that doesn't send it's output anywhere.  (kinda making stuff up here.. I don't know what in-target does)01:27
pmatulishmmm, i think i'm missing 'preseed/' in preseed/late_command01:28
CarlFKoh look :)01:29
CarlFKmaybe I should go to bed too.01:29
pmatulisthis should work.  will see in morning.  thanks for helping01:30
CarlFKsleep well01:30
cmack2How is the ubuntu-server ISO assembled from the various packages that constitute it? Are there build scripts that assemble everything into one ISO file? If so, where are they located?09:38
cjwatsonlp:ubuntu-cdimage + lp:~ubuntu-cdimage/debian-cd/ubuntu09:39
cjwatson(well, plus other stuff in configs/devel in lp:ubuntu-cdimage, really)09:39
xnox... and the server seed itself to define the canonical list of packages that constitue it.09:39
cmack2Where is the server seed?09:41
cjwatsonlp:~ubuntu-core-dev/ubuntu-seeds/platform.utopic + lp:~ubuntu-core-dev/ubuntu-seeds/ubuntu.utopic09:41
cmack2I am trying to fix a problem on my machine described by https://bugs.launchpad.net/ubuntu-cdimage/+bug/1298610 in which the installer in ubuntu-14.04-server-amd64.iso cannot connect to the network because my machine only has a Broadcom chipset; I would like to put together an ISO with bcmwl included but I am not sure how. Any suggestions?09:57
cjwatsonhttps://wiki.debian.org/DebianInstaller/Modify/CustomKernel will probably need some adaptation but is likely to be the simplest place to start.10:01
cjwatsonIt's much easier to use that approach to build a miniature ISO that grabs almost everything from the network than a full server ISO.10:01
cmack2Thanks10:02
pmatulisCarlFK: still didn't work11:40
pmatulisanyone know why this would not give me an extra line in the target's /etc/hosts file?11:47
pmatulisd-i     preseed/late_command string in-target echo "10.230.4.32 preseed.papamike.ca" >> /etc/hosts11:47
pmatulisthe logs don't show any error11:47
cjwatsonbecause you have your scoping wrong - in-target only wraps the echo, not the >>11:48
cjwatsonand in-target is totally pointless there anyway :)11:48
cjwatsond-i preseed/late_command string echo "10.230.4.32 preseed.papamike.ca" >> /target/etc/hosts11:48
pmatulissigh, ok, thanks a lot11:49
cjenkin2I have a very noob question: I am reading about preseeding because I want to override the defaults of some sections (locale, keyboard layout).23:52
cjenkin2The guide I am reading says you won't be able to preseed these using any method besides through the initrd,23:53
cjenkin2however the the target system installs is it installs an initial system on the machine automatically, then sets oem-configure to run again on the next boot. Could you then preseed locale from the install medium (in this case MMC)?23:54

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