]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Force DHCP client to send hostname 1004/head
authorLisio <andrey@kostin.email>
Thu, 5 May 2016 04:35:36 +0000 (08:35 +0400)
committerAndrey Kostin <andrey@kostin.email>
Thu, 5 May 2016 14:59:28 +0000 (17:59 +0300)
Required for proper applying dnsmasq config entries.

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

index 18feda9f27106b7e354f079c52db860c6e4b4fd4..bc4eee4ded20ac39c60fb803fd063ad7215f426a 100644 (file)
@@ -346,6 +346,7 @@ setup_network() {
        cat <<-EOF > etc/network/interfaces
                auto eth0
                iface eth0 inet dhcp
+               hostname $(hostname)
        EOF
 }