From 2d2089a6e424bb6975c1194a4b4536039a56a77d Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 5 Jan 2010 15:39:27 +0000 Subject: [PATCH] -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 --- xCAT-server/lib/xcat/plugins/esx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 1c5ac22be..9e783cf52 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -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"]);