incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edi...@apache.org
Subject [3/6] git commit: CLOUDSTACK-131: KVM fails to copy authorized_keys to system vm now that iso is not mounted
Date Thu, 20 Sep 2012 21:01:00 GMT
CLOUDSTACK-131: KVM fails to copy authorized_keys to system vm now that iso is not
mounted

Signed-off-by: Edison Su <sudison@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/f9e94125
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/f9e94125
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/f9e94125

Branch: refs/heads/4.0
Commit: f9e94125affd0ad9eba2488383385f88e284e339
Parents: 8342772
Author: Marcus Sorensen <shadowsor@gmail.com>
Authored: Thu Sep 20 11:06:53 2012 -0700
Committer: Edison Su <sudison@gmail.com>
Committed: Thu Sep 20 14:00:20 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/f9e94125/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 


Mime
View raw message