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