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