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 <[email protected]> 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
> [email protected]
> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>
>
_______________________________________________
cobbler mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/cobbler

Reply via email to