From 8a820d176597417f6b2aa84c7b4937d898e9e731 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 22 Oct 2012 20:09:14 +0000 Subject: [PATCH] Fix copyesxiboot to work fine with mod.tgz git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14088 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/anaconda.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index f336b7e8a..360ca0089 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -1142,7 +1142,7 @@ sub mkinstall { mkpath("$tftpdir/xcat/$os/$arch"); if($esxi){ - copyesxiboot($pkgdir, "$tftpdir/xcat/$os/$arch"); + copyesxiboot($pkgdir, "$tftpdir/xcat/$os/$arch",osver=>$os); }else{ my $tftppath; if ($profile) { @@ -1637,10 +1637,13 @@ sub getplatform { sub copyesxiboot { my $srcdir = shift; my $targetdir = shift; + my %args=@_; + my $os='esxi'; + if ($args{osver}) { $os=$args{osver} } # this just does the same thing that the stateless version does. unless(-f "$targetdir/mod.tgz"){ require xCAT_plugin::esx; - xCAT_plugin::esx::makecustomizedmod('esxi', $targetdir); + xCAT_plugin::esx::makecustomizedmod($os, $targetdir); } my @files = qw(mboot.c32 vmkboot.gz vmkernel.gz sys.vgz cim.vgz ienviron.vgz install.vgz); foreach my $f (@files){