]> 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 18:01:11 +0000 (14:01 -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 fe1b1d4a23e937e10318a515c89b8514581053e7..3a256dbdc4ef06a28cf94e873f498397d261cca7 100644 (file)
@@ -247,6 +247,7 @@ HOSTNAME=${UTSNAME}
 NM_CONTROLLED=no
 TYPE=Ethernet
 MTU=${MTU}
+DHCP_HOSTNAME=$name
 EOF
 
     # set the hostname