-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:
parent
d484b31c73
commit
81d2ea1a55
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user