From 517f9a25f786194996f065347af08abb656d8caf Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 19 Apr 2011 14:23:35 +0000 Subject: [PATCH] copycds for esxi5 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9350 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/esx.pm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 6d85dc3c7..6bdb6988a 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -3682,7 +3682,18 @@ sub copycd { } } close(LINE); - } + } elsif (-r $path . "/vmware-esx-base-readme") { + open(LINE,$path."/vmware-esx-base-readme"); + while () { + if (/VMware ESXi 5\.0/) { + $darch="x86_64"; + $arch="x86_64"; + $distname='esxi5'; + $found=1; + last; + } + } + } unless ($found) { return; } #not our media xCAT::SvrUtils::sendmsg("Copying media to $installroot/$distname/$arch/", $output_handler);