Hello, Trying to set up autoinstall with net/kea as the DHCP server ended up problematic. The issue is that it considers the "file" field in the DHCP header deprecated in favor of the "bootfile-name" DHCP option. There is therefore no way to configure the equivalent of the ISC dhcpd "filename" setting.
The problem then is two-fold: First of all dhclient does not request this option by default, and secondly, the installer does not check for the setting. Making dhclient request the option was easy enough (diff below). My idea is then to have install.sub check for "filename" first, and then look for "option bootfile-name" if no match was found. The following regex based on current install.sub matching seemed to work at least. === sed -E '/^ *option bootfile-name "(.*\/)?auto_(install|upgrade)";$/!d;s//\2/;q' /var/db/dhclient.leases.em0 === What do people think about this? I did ask about the lack of ability to configure the "file" field on the kea-users list as well, thread can be read here: https://lists.isc.org/pipermail/kea-users/2016-July/000435.html -- Patrik Lundin Index: clparse.c =================================================================== RCS file: /cvs/src/sbin/dhclient/clparse.c,v retrieving revision 1.95 diff -u -p -u -r1.95 clparse.c --- clparse.c 3 Jun 2016 02:31:17 -0000 1.95 +++ clparse.c 10 Jul 2016 18:42:14 -0000 @@ -110,6 +110,8 @@ read_client_conf(void) [config->requested_option_count++] = DHO_DOMAIN_NAME_SERVERS; config->requested_options [config->requested_option_count++] = DHO_HOST_NAME; + config->requested_options + [config->requested_option_count++] = DHO_BOOTFILE_NAME; if ((cfile = fopen(path_dhclient_conf, "r")) != NULL) { do {
