[lxc-devel] [lxc/master] Force DHCP client to send hostname
Lisio on Github
lxc-bot at linuxcontainers.org
Thu May 5 04:52:50 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 407 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160505/b78e830c/attachment.bin>
-------------- next part --------------
From 6d79cef2bef2e9fddad0c3583eda2d04a334b8c3 Mon Sep 17 00:00:00 2001
From: Lisio <andrey at kostin.email>
Date: Thu, 5 May 2016 08:35:36 +0400
Subject: [PATCH] Force DHCP client to send hostname
Required for proper applying dnsmasq config entries.
---
templates/lxc-alpine.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in
index 18feda9..bc4eee4 100644
--- a/templates/lxc-alpine.in
+++ b/templates/lxc-alpine.in
@@ -346,6 +346,7 @@ setup_network() {
cat <<-EOF > etc/network/interfaces
auto eth0
iface eth0 inet dhcp
+ hostname $(hostname)
EOF
}
More information about the lxc-devel
mailing list