Committed by
Gerrit Code Review
Warden clone-node now properly sets the host name.
Change-Id: I384de34e8301fedc4f4aa67b4ef84eee762df8c8
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -25,4 +25,5 @@ sudo chmod 700 /var/lib/lxc | ... | @@ -25,4 +25,5 @@ sudo chmod 700 /var/lib/lxc |
25 | sudo lxc-start -d -n $name | 25 | sudo lxc-start -d -n $name |
26 | sudo lxc-attach -n $name -- ping -c1 8.8.8.8 | 26 | sudo lxc-attach -n $name -- ping -c1 8.8.8.8 |
27 | sudo lxc-attach -n $name -- bash -c "echo $key >> /home/sdn/.ssh/authorized_keys" | 27 | sudo lxc-attach -n $name -- bash -c "echo $key >> /home/sdn/.ssh/authorized_keys" |
28 | +sudo lxc-attach -n $name -- bash -c "sed -i \"s/127.0.1.1.*/127.0.1.1 $name/\" /etc/hosts" | ||
28 | sudo lxc-ls --fancy | 29 | sudo lxc-ls --fancy | ... | ... |
-
Please register or login to post a comment