From: Kalman Olah Date: Tue, 22 Jul 2014 08:38:42 +0000 (+0200) Subject: Include hostname in DHCP requests X-Git-Tag: lxc-1.1.0.alpha2~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91c5c53f59262704538a7b8f9571d626e4e08011;p=thirdparty%2Flxc.git Include hostname in DHCP requests With the current old CentOS template, dnsmasq was not able to resolve the hostname of an lxc container after it had been created. This minor change rectifies that. Signed-off-by: Kalman Olah Acked-by: Stéphane Graber --- diff --git a/templates/lxc-centos.in b/templates/lxc-centos.in index 69d3d4fad..1586a902b 100644 --- a/templates/lxc-centos.in +++ b/templates/lxc-centos.in @@ -253,6 +253,7 @@ HOSTNAME=${UTSNAME} NM_CONTROLLED=no TYPE=Ethernet MTU=${MTU} +DHCP_HOSTNAME=$name EOF # set the hostname