[00:53] <pmatulis> d-i     late_command string in-target echo "10.230.4.32 preseed.example.com" >> /etc/hosts
[00:53] <pmatulis> CarlFK: any idea why this does not work? ↑
[00:55] <CarlFK> pmatulis: looks ok to me. check the install logs that are saved to /var/log/installer/syslog
[01:00] <pmatulis> CarlFK: yeah, says 'late_command doesn't exist'
[01:01] <CarlFK> pmatulis: what says that?
[01:01] <CarlFK> carl@twist:~/Dropbox/Public$ sudo grep late_command /var/log/installer/syslog
[01:01] <CarlFK> May  2 18:14:37 debconf: --> GET preseed/late_command
[01:04] <CarlFK> I 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=5
[01:04] <CarlFK> DEBCONF_DEBUG=5 - try adding that
[01:04] <pmatulis> i have debug, sec
[01:07] <pmatulis> CarlFK: http://imagebin.ca/v/1MYbTEWZHD1o
[01:09] <CarlFK> good start, that is where it is set (i guess when the file is parsed)  later in that file should be where it is executed
[01:10] <CarlFK> screen shot because it is running in a vm?
[01:10] <pmatulis> it's a vm.  i could have ssh'd but it was right there so...
[01:12] <pmatulis> that screenie shows the only instances of the string '/hosts'
[01:13] <CarlFK> late_command ?
[01:14] <CarlFK> May 13 22:03:33 debconf: --> GET preseed/late_command
[01:14] <CarlFK> May 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:17] <pmatulis> CarlFK: not much there
[01:17] <pmatulis> http://paste.ubuntu.com/7470744/
[01:19] <CarlFK> d-i preseed/late_command string cd ...
[01:19] <CarlFK> I think you are missing "string" ?
[01:20] <CarlFK> er, never mind
[01:21] <pmatulis> going to bed, be back here tomorrow
[01:21] <CarlFK> long shot: ...
[01:21] <CarlFK> hold up ;)
[01:22] <pmatulis> huh?
[01:22] <CarlFK> ya know how this doesn't work: sudo echo foo>>/etc/hosts ?
[01:22] <CarlFK> cuz the sudo only sudo's echo foo, but not >>/etc/hosts ?
[01:23] <CarlFK> I am wondering if the results of in-target get appended to your installer's /etc/hosts
[01:23] <pmatulis> nothing gets appended
[01:24] <CarlFK> right
[01:24] <CarlFK> mabye.
[01:25] <CarlFK> in-target echo "10.230.4.32 preseed.example.com" >> /etc/hosts
[01:25] <CarlFK> er, how do you know?
[01:26] <CarlFK> it may be in  installer's /etc/hosts  not /target/etc/hosts
[01:27] <CarlFK> or 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:28] <pmatulis> hmmm, i think i'm missing 'preseed/' in preseed/late_command
[01:29] <CarlFK> oh look :)
[01:29] <CarlFK> maybe I should go to bed too.
[01:30] <pmatulis> this should work.  will see in morning.  thanks for helping
[01:30] <CarlFK> sleep well
[09:38] <cmack2> How 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:39] <cjwatson> lp:ubuntu-cdimage + lp:~ubuntu-cdimage/debian-cd/ubuntu
[09: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:41] <cmack2> Where is the server seed?
[09:41] <cjwatson> lp:~ubuntu-core-dev/ubuntu-seeds/platform.utopic + lp:~ubuntu-core-dev/ubuntu-seeds/ubuntu.utopic
[09:57] <cmack2> I 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?
[10:01] <cjwatson> https://wiki.debian.org/DebianInstaller/Modify/CustomKernel will probably need some adaptation but is likely to be the simplest place to start.
[10:01] <cjwatson> It'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:02] <cmack2> Thanks
[11:40] <pmatulis> CarlFK: still didn't work
[11:47] <pmatulis> anyone know why this would not give me an extra line in the target's /etc/hosts file?
[11:47] <pmatulis> d-i     preseed/late_command string in-target echo "10.230.4.32 preseed.papamike.ca" >> /etc/hosts
[11:47] <pmatulis> the logs don't show any error
[11:48] <cjwatson> because you have your scoping wrong - in-target only wraps the echo, not the >>
[11:48] <cjwatson> and in-target is totally pointless there anyway :)
[11:48] <cjwatson> d-i preseed/late_command string echo "10.230.4.32 preseed.papamike.ca" >> /target/etc/hosts
[11:49] <pmatulis> sigh, ok, thanks a lot
[23:52] <cjenkin2> I have a very noob question: I am reading about preseeding because I want to override the defaults of some sections (locale, keyboard layout).
[23:53] <cjenkin2> The guide I am reading says you won't be able to preseed these using any method besides through the initrd,
[23:54] <cjenkin2> however 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)?