You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ed...@apache.org on 2012/09/20 20:07:41 UTC

git commit: CLOUDSTACK-131: KVM fails to copy authorized_keys to system vm now that iso is not mounted

Updated Branches:
  refs/heads/master 29de80da4 -> 38457ee8a


CLOUDSTACK-131: KVM fails to copy authorized_keys to system vm now that iso is not
mounted

Signed-off-by: Edison Su <su...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/38457ee8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/38457ee8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/38457ee8

Branch: refs/heads/master
Commit: 38457ee8acfaedb0263d7266d1c8b08a6b33a94b
Parents: 29de80d
Author: Marcus Sorensen <sh...@gmail.com>
Authored: Thu Sep 20 11:06:53 2012 -0700
Committer: Edison Su <su...@gmail.com>
Committed: Thu Sep 20 11:06:53 2012 -0700

----------------------------------------------------------------------
 .../debian/config/etc/init.d/cloud-early-config    |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/38457ee8/patches/systemvm/debian/config/etc/init.d/cloud-early-config
----------------------------------------------------------------------
diff --git a/patches/systemvm/debian/config/etc/init.d/cloud-early-config b/patches/systemvm/debian/config/etc/init.d/cloud-early-config
index ca97d29..c579d68 100755
--- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config
+++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config
@@ -115,6 +115,7 @@ get_boot_params() {
           cp -f $EXTRA_MOUNT/authorized_keys /var/cache/cloud/authorized_keys
           privkey=/var/cache/cloud/authorized_keys
           umount $EXTRA_MOUNT
+          cp -f $privkey /root/.ssh/ && chmod go-rwx /root/.ssh/authorized_keys
           ;;
      vmware)
           vmtoolsd --cmd 'machine.id.get' > /var/cache/cloud/cmdline