From 91c5c53f59262704538a7b8f9571d626e4e08011 Mon Sep 17 00:00:00 2001 From: Kalman Olah Date: Tue, 22 Jul 2014 10:38:42 +0200 Subject: [PATCH] Include hostname in DHCP requests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- templates/lxc-centos.in | 1 + 1 file changed, 1 insertion(+) 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 -- 2.47.2