From 9c94100609056ee6cb9341c8af0233d6477781f0 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Thu, 11 Jul 2013 05:22:56 +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/trunk@16938 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 3d618e04d..93c7dc05c 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/");