]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Force DHCP client to send hostname
authorLisio <andrey@kostin.email>
Thu, 5 May 2016 04:35:36 +0000 (08:35 +0400)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Nov 2016 23:21:22 +0000 (18:21 -0500)
Required for proper applying dnsmasq config entries.

Signed-off-by: Andrey Kostin <andrey@kostin.email>
templates/lxc-alpine.in

index 8ee69c607a10345af4661b624153229d88c1ef07..2865e4df8207257a0fb5ce4a0b89f8f518e4284b 100644 (file)
@@ -149,6 +149,7 @@ iface lo inet loopback
 
 auto eth0
 iface eth0 inet dhcp
+hostname $(hostname)
 EOF
 
     # set the hostname