From 33422b3e931a671209e9dbd0da9d93cbc593a8dd Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 22 Apr 2011 17:38:22 +0000 Subject: [PATCH] Correct copycds mistake in esxi5 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9383 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/esx.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index d9d26aca8..0738320d4 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -3763,9 +3763,11 @@ sub copycd { s/runweasel//; #don't run the installer in stateless mode s!--- /imgdb.tgz!!; #don't need the imgdb for stateless s!--- /imgpayld.tgz!!; #don't need the boot payload since we aren't installing + s!--- /tools.t00!!; #tools could be useful, but for now skip the memory requirement s!--- /weaselin.i00!!; #and also don't need the weasel install images if... not installing if (/^modules=/ and $_ !~ /xcatmod.tgz/) { - $_ .= $_. ' --- xcatmod.tgz'; + chomp(); + s! *\z! --- /xcatmod.tgz\n!; } s!Loading ESXi installer!xCAT is loading ESXi stateless!; } @@ -3774,6 +3776,7 @@ sub copycd { print $bootcfg $_; } close($bootcfg); + } } if ($rc != 0){ @@ -4120,8 +4123,7 @@ sub cpNetbootImages { if (/^kernel=(.*)/) { push @filestocopy,$1; } elsif (/^modules=(.*)/) { - foreach {split / --- /,$1) { - unless ( + foreach (split / --- /,$1) { push @filestocopy,$_; } } @@ -4136,6 +4138,7 @@ sub cpNetbootImages { xCAT::SvrUtils::sendmsg([1,"Could not copy netboot contents from $srcDir/$mod to $destDir/$mod, $srcDir/$mod not found"], $output_handler); } } + } } else { xCAT::SvrUtils::sendmsg([1,"VMware $osver is not supported for netboot"], $output_handler); }