make the default kernel modules name from xx to xx.ko

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10165 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2011-07-27 09:02:10 +00:00
parent cf61fd06a6
commit df15b2793d
2 changed files with 12 additions and 0 deletions

View File

@ -169,6 +169,12 @@ foreach (split /,/,$netdriver) {
push @ndrivers, $_;
}
foreach (@ndrivers) {
unless (/\.ko$/) {
s/$/.ko/;
}
}
unless ($onlyinitrd) {
@yumdirs=();
find(\&isyumdir, <$installroot/$osver/$arch/>);

View File

@ -172,6 +172,12 @@ foreach (split /,/,$netdriver) {
}
}
foreach (@ndrivers) {
unless (/\.ko$/) {
s/$/.ko/;
}
}
unless (grep /af_packet/,@ndrivers) {
unshift(@ndrivers,"af_packet.ko");
}