-Install xCAT networking hooks into esxi stateless

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6128 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-05-15 01:02:30 +00:00
parent d8c8c0e70d
commit e5eab882d0

View File

@ -2275,6 +2275,11 @@ sub makecustomizedmod {
print $shadow "$_:*:$dayssince1970:0:99999:7:::\n";
}
close($shadow);
if (-e "$::XCATROOT/share/xcat/netboot/esxi/47.xcat-networking") {
mkpath($tempdir."/etc/vmware/init/init.d");
copy( "$::XCATROOT/share/xcat/netboot/esxi/47.xcat-networking",$tempdir."/etc/vmware/init/init.d/47.xcat-networking"
}
#TODO: auto-enable ssh and request boot-time customization rather than on-demand?
require Cwd;
my $dir=Cwd::cwd();
chdir($tempdir);