mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	fix partition script error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14241 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -215,7 +215,7 @@ sub subvars {
 | 
			
		||||
        if ($scriptflag){
 | 
			
		||||
            #for redhat/sl/centos/kvm/fedora
 | 
			
		||||
            if ($inc =~ /#XCAT_PARTITION_START#/) {
 | 
			
		||||
                my $tempstr = "%inlcude /tmp/partitionfile\n";
 | 
			
		||||
                my $tempstr = "%include /tmp/partitionfile\n";
 | 
			
		||||
                $inc =~ s/#XCAT_PARTITION_START#[\s\S]*#XCAT_PARTITION_END#/$tempstr/;
 | 
			
		||||
                #modify the content in the file, and write into %pre part
 | 
			
		||||
                $partcontent = "cat > /tmp/partscript << EOFEOF\n" . $partcontent . "\nEOFEOF\n";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user