From e5eab882d0bc8882452ba812683b3abbb72f3fbe Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sat, 15 May 2010 01:02:30 +0000 Subject: [PATCH] -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 --- xCAT-server/lib/xcat/plugins/esx.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 7ac8d73a3..89d61ee93 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -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);