diff --git a/xCAT-server/share/xcat/netboot/rh/genimage b/xCAT-server/share/xcat/netboot/rh/genimage index 53708a697..372f64577 100755 --- a/xCAT-server/share/xcat/netboot/rh/genimage +++ b/xCAT-server/share/xcat/netboot/rh/genimage @@ -169,6 +169,12 @@ foreach (split /,/,$netdriver) { push @ndrivers, $_; } +foreach (@ndrivers) { + unless (/\.ko$/) { + s/$/.ko/; + } +} + unless ($onlyinitrd) { @yumdirs=(); find(\&isyumdir, <$installroot/$osver/$arch/>); diff --git a/xCAT-server/share/xcat/netboot/sles/genimage b/xCAT-server/share/xcat/netboot/sles/genimage index 19834409f..09e381510 100755 --- a/xCAT-server/share/xcat/netboot/sles/genimage +++ b/xCAT-server/share/xcat/netboot/sles/genimage @@ -172,6 +172,12 @@ foreach (split /,/,$netdriver) { } } +foreach (@ndrivers) { + unless (/\.ko$/) { + s/$/.ko/; + } +} + unless (grep /af_packet/,@ndrivers) { unshift(@ndrivers,"af_packet.ko"); }