mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 19:32:31 +00:00 
			
		
		
		
	Do not check existence of postscripts with start-here
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14014 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -442,6 +442,10 @@ sub preprocess_updatenode | ||||
|     } | ||||
|  | ||||
|     # handle the validity of postscripts | ||||
|     # check to see if they exist except for the internal xCAT | ||||
|     # postscripts-start-here,postbootscripts-start-here, | ||||
|     # defaults-postbootscripts-start-here, osimage-postbootscripts-start-here, | ||||
|     # etc  | ||||
|     if (defined($::RERUNPS)) | ||||
|     { | ||||
|         if ($::RERUNPS eq "") | ||||
| @@ -452,9 +456,9 @@ sub preprocess_updatenode | ||||
|         { | ||||
|             $postscripts = $::RERUNPS; | ||||
|             my @posts = split(',', $postscripts); | ||||
|  | ||||
|             foreach (@posts) | ||||
|             { | ||||
|             if (!grep(/start-here/, @posts)) {   | ||||
|               foreach (@posts) | ||||
|               { | ||||
|                 my @aa = split(' ', $_); | ||||
|                 if (!-e "$installdir/postscripts/$aa[0]") | ||||
|                 { | ||||
| @@ -464,8 +468,9 @@ sub preprocess_updatenode | ||||
|                     $callback->($rsp); | ||||
|                     return; | ||||
|                 } | ||||
|               } | ||||
|             } | ||||
|         } | ||||
|        } | ||||
|     } | ||||
|  | ||||
|     # If -F or -f  option specified, sync files to the noderange or their | ||||
|   | ||||
		Reference in New Issue
	
	Block a user