]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Include hostname in DHCP requests
authorKalman Olah <hello@kalmanolah.net>
Tue, 22 Jul 2014 08:38:42 +0000 (10:38 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 8 Aug 2014 16:15:07 +0000 (12:15 -0400)
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 <hello@kalmanolah.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-centos.in

index 69d3d4fad1b5741fb63479a13168d12757614821..1586a902b8a609cae296bf18b2aee71378d6f5f8 100644 (file)
@@ -253,6 +253,7 @@ HOSTNAME=${UTSNAME}
 NM_CONTROLLED=no
 TYPE=Ethernet
 MTU=${MTU}
+DHCP_HOSTNAME=$name
 EOF
 
     # set the hostname