From 42cf1d088e46a13fe5c8effa8544930aed33ef13 Mon Sep 17 00:00:00 2001 From: jjhua Date: Thu, 26 Jul 2012 09:12:26 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/perl/xCAT/Postage.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/perl/xCAT/Postage.pm b/xCAT-server/lib/perl/xCAT/Postage.pm index fe0b66681..e5d2307f1 100644 --- a/xCAT-server/lib/perl/xCAT/Postage.pm +++ b/xCAT-server/lib/perl/xCAT/Postage.pm @@ -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