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
This commit is contained in:
parent
965059d45c
commit
a20d2ed496
@ -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/");
|
||||
|
Loading…
Reference in New Issue
Block a user