create the KERNELDIR for ospkgs

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13349 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2012-07-26 09:12:26 +00:00
parent 9c1636bbe6
commit 42cf1d088e

View File

@ -464,7 +464,7 @@ sub makescript
(my $ref1) =
$linuximagetab->getAttribs({imagename => $provmethod},
'pkglist', 'pkgdir', 'otherpkglist',
'otherpkgdir');
'otherpkgdir', 'kerneldir');
if ($ref1)
{
if ($ref1->{'pkglist'})
@ -486,6 +486,11 @@ sub makescript
push @scriptd, "export OTHERPKGDIR\n";
}
}
if ($ref1->{'kerneldir'})
{
push @scriptd, "KERNELDIR=" . $ref1->{'kerneldir'} . "\n";
push @scriptd, "export KERNELDIR\n";
}
}
}
else