mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	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:
		@@ -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/");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user