Commit 1dc94290 by Nikolay Martynov Committed by Stéphane Graber

ssh: send hostname to dhcp server

Send container's hostname to dhcp server when getting ip address. Signed-off-by: 's avatarNikolay Martynov <mar.kolya@gmail.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent dfe112bc
...@@ -229,7 +229,7 @@ if [ $0 = "/sbin/init" ]; then ...@@ -229,7 +229,7 @@ if [ $0 = "/sbin/init" ]; then
touch /etc/fstab touch /etc/fstab
rm -f /dhclient.conf rm -f /dhclient.conf
cat > /dhclient.conf << EOF cat > /dhclient.conf << EOF
send host-name "<hostname>"; send host-name = gethostname();
EOF EOF
ifconfig eth0 up ifconfig eth0 up
dhclient eth0 -cf /dhclient.conf dhclient eth0 -cf /dhclient.conf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment