-Change module filename checks to be less permissive

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4892 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-01-05 15:39:27 +00:00
parent 3ff2c0eaaa
commit 2d2089a6e4

View File

@ -2263,7 +2263,7 @@ sub cpNetbootImages {
use File::Basename;
foreach (glob "$overridedir/*") {
my $mod = scalar fileparse($_);
if ($mod !~ /mboot.c32/ and $mod !~ /boot.cfg/ and $mod !~ /pkgdb.tgz/) {
if ($mod =~ /gz\z/ and $mod !~ /pkgdb.tgz/) {
$modulestoadd->{$mod}=1;
}
copy($_,"$destDir/$mod") or sendmsg([1,"Could not copy netboot contents from $overridedir to $destDir"]);