Fix copyesxiboot to work fine with mod.tgz
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@14086 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
82a094b753
commit
3af54f8e00
@ -1074,7 +1074,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{
|
||||
copy($kernpath,"$tftpdir/xcat/$os/$arch");
|
||||
copy($initrdpath,"$tftpdir/xcat/$os/$arch/initrd.img");
|
||||
@ -1485,10 +1485,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){
|
||||
|
Loading…
Reference in New Issue
Block a user