Yeah,  I perhaps could've been more clear:   finish-install belongs to the debian installer - not part of cobbler.  finish-install runs *after* the preseed file is all said and done with but before the system is rebooted.    By the time preseed is done so is Cobbler's ability to have any further influence on the install.


On Thu, Jul 31, 2014 at 2:05 PM, Justin Lloyd <jllwyd@gmail.com> wrote:
Hi Russel,

Thanks for this information. I did managed to resolve my issue in a similar fashion based on this cobbler list post. The following appears to work even though it didn't on my first attempt, but I added the trailing semicolon and it worked, but I may have done something else along the way:

d-i preseed/late_command string wget -O- http://$http_server/cblr/svc/op/script/$what/$name/?script=preseed_late_default | chroot /target /bin/sh -s; cp /target/etc/network/interfaces /etc/network/interfaces;

I've never dug into the cobbler package sources (wasn't even familiar with them), but I've now looked at the finish-install udeb package and it's very enlightening. I have a lot more to learn now. Is there anywhere that more fully documents all of the debian-installer "modules" (i.e. pkgsel, netcfg, etc.), besides this and this? It all still seems very cryptic at times and I'm really trying to better understand and improve my cobbler build server (seed files, cheetah templating, the entire detailed cobbler kickstart process from start to finish, etc.)

Thanks,
Justin



On Thu, Jul 31, 2014 at 4:41 AM, Russell Roy <rroy@dyn.com> wrote:
After the seed file execution is complete (and beyond even preseed _late_default) /etc/network/interfaces is being overwritten by the finish-install process.    That means that the custom /e/n/i file generated and put in place by post_install_network_config_deb is simply wiped out.  You're supposed to be able to short-circuit finish-install by some seed setting ... but, for reasons unknown, it doesn't work.  (I believe this is related:  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=698626).

Anywho ... the workaround that I came up with was to remove a couple of scripts executed by the finish-install process that were doing the overwriting:

d-i preseed/late_command string rm -f /usr/lib/finish-install.d/55netcfg-copy-config /usr/lib/finish-install.d/50config-target-network; wget -O- http://$http_server/cblr/svc/op/script/$what/$name/?script=preseed_late_default | chroot /target /bin/sh -s

If you look at the package source for finish-install you'll be able to confirm for yourself that those particular files are responsible for the overwrite. 


On Wed, Jul 30, 2014 at 5:23 PM, Justin Lloyd <jllwyd@gmail.com> wrote:
Hi all,

I'm trying to build an Ubuntu 14.04.1 server from my Cobbler 12.04.4 server running Cobbler 2.6.3. I'd been successfully building 12.04.4 servers with Cobbler 2.7.0 out of github, but now that I've added 14.04.1 to my Cobbler distros, the servers seem to build fine except they're left with the DHCP address allocated to them by atftpd. The /etc/network/interfaces file hasn't been updated as expected by the post_install_network_config_deb snippet specified in the preseed_late_default script.

Any ideas what I might be missing? (I've asked on IRC yesterday and today but received no replies.)


_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler



_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler



_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler