-Have esxi hosts trust the root ssh key by default

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7175 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-08-20 14:48:31 +00:00
parent d484b31c73
commit 81d2ea1a55

View File

@ -2919,6 +2919,12 @@ sub makecustomizedmod {
if (-e "$::XCATROOT/share/xcat/netboot/esxi/xcatsplash") {
copy( "$::XCATROOT/share/xcat/netboot/esxi/xcatsplash",$tempdir."/etc/vmware/welcome");
}
if (-r "/root/.ssh/id_rsa.pub") {
my $umask = umask(0077);#don't remember if dropbear is picky, but just in case
mkpath($tempdir."/.ssh";
copy("/root/.ssh/id_rsa.pub",$tempdir."/.ssh/authorized_keys");
umask($umask;
}
my $tfile;
mkpath($tempdir."/var/run/vmware");
open $tfile,">",$tempdir."/var/run/vmware/show-tech-support-login";