git://git.onelab.eu
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
af1794d
)
just being safe
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Wed, 5 Feb 2014 11:58:55 +0000
(12:58 +0100)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Wed, 5 Feb 2014 11:58:55 +0000
(12:58 +0100)
lbuild-initvm.sh
patch
|
blob
|
history
diff --git
a/lbuild-initvm.sh
b/lbuild-initvm.sh
index
f01bf31
..
2fed972
100755
(executable)
--- a/
lbuild-initvm.sh
+++ b/
lbuild-initvm.sh
@@
-559,7
+559,9
@@
function setup_lxc() {
# grant ssh access from host to guest
mkdir $lxc_root/root/.ssh
cat /root/.ssh/id_rsa.pub >> $lxc_root/root/.ssh/authorized_keys
# grant ssh access from host to guest
mkdir $lxc_root/root/.ssh
cat /root/.ssh/id_rsa.pub >> $lxc_root/root/.ssh/authorized_keys
-
+ chmod 700 $lxc_root/root/.ssh
+ chmod 600 $lxc_root/root/.ssh/authorized_keys
+
# don't keep the input xml, this can be retrieved at all times with virsh dumpxml
config_xml=/tmp/$lxc.xml
( [ -n "$BUILD_MODE" ] && write_lxc_xml_build $lxc || write_lxc_xml_test $lxc ) > $config_xml
# don't keep the input xml, this can be retrieved at all times with virsh dumpxml
config_xml=/tmp/$lxc.xml
( [ -n "$BUILD_MODE" ] && write_lxc_xml_build $lxc || write_lxc_xml_test $lxc ) > $config_xml