diff --git a/templates/lxc-sshd.in b/templates/lxc-sshd.in index 569f12efb..949c2ad1e 100644 --- a/templates/lxc-sshd.in +++ b/templates/lxc-sshd.in @@ -229,7 +229,7 @@ if [ $0 = "/sbin/init" ]; then touch /etc/fstab rm -f /dhclient.conf cat > /dhclient.conf << EOF -send host-name ""; +send host-name = gethostname(); EOF ifconfig eth0 up dhclient eth0 -cf /dhclient.conf