From a20d2ed4968c2e36e56f0d6a620b568e0507f729 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Thu, 11 Jul 2013 05:24:13 +0000 Subject: [PATCH] Fixing a problem on sles that we need to use tar --wildcards option while extracting a file from kit tarball. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16939 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kit.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/kit.pm b/xCAT-server/lib/xcat/plugins/kit.pm index 5305bce03..e70f818f6 100644 --- a/xCAT-server/lib/xcat/plugins/kit.pm +++ b/xCAT-server/lib/xcat/plugins/kit.pm @@ -1102,9 +1102,9 @@ sub addkit my %rsp; push@{ $rsp{data} }, "Extract Kit $kit to /tmp"; xCAT::MsgUtils->message( "I", \%rsp, $callback ); - $rc = system("tar jxvf $kit -C /tmp/tmpkit/ */kit.conf"); + $rc = system("tar jxvf $kit -C /tmp/tmpkit/ --wildcards */kit.conf"); } else { - $rc = system("tar jxf $kit -C /tmp/tmpkit/ */kit.conf"); + $rc = system("tar jxf $kit -C /tmp/tmpkit/ --wildcards */kit.conf"); } opendir($dir,"/tmp/tmpkit/");