aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge E. Hallyn <serge.hallyn@canonical.com>2011-10-24 14:38:30 +0200
committerDaniel Lezcano <daniel.lezcano@free.fr>2011-10-24 14:38:30 +0200
commit0f3fe9e0b57d17db62b8bf3d7b9936a1bbcde64f (patch)
treeedf9cc3f441e10e3e3fd3c4ea670abca177dcd88
parentfix more broken paths in lxc-*.in scripts (diff)
downloadlxc-0f3fe9e0b57d17db62b8bf3d7b9936a1bbcde64f.tar.gz
lxc-0f3fe9e0b57d17db62b8bf3d7b9936a1bbcde64f.tar.bz2
lxc-0f3fe9e0b57d17db62b8bf3d7b9936a1bbcde64f.zip
lxc-clone: fix dhclient.conf send hostname command
End the command with ';', which is needed, and put the hostname in quotes (which doesn't really seem needed, but shown in man page). Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
-rw-r--r--src/lxc/lxc-clone.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lxc/lxc-clone.in b/src/lxc/lxc-clone.in
index 657486d..38369d8 100644
--- a/src/lxc/lxc-clone.in
+++ b/src/lxc/lxc-clone.in
@@ -252,7 +252,7 @@ echo "Updating rootfs..."
# so you can 'ssh $hostname.' or 'ssh $hostname.local'
if [ -f $rootfs/etc/dhcp/dhclient.conf ]; then
- sed -i "s/send host-name.*$/send host-name $hostname/" $rootfs/etc/dhcp/dhclient.conf
+ sed -i "s/send host-name.*$/send host-name \"$hostname\";/" $rootfs/etc/dhcp/dhclient.conf
fi
# set the hostname