mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	support flags when creating osimage.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7424 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -2830,19 +2830,9 @@ sub mknimimage | ||||
|         chomp $paging_name; | ||||
|         $newres{paging} = $paging_name; | ||||
|  | ||||
|         # update spot with additional software and sync files | ||||
|         if ( | ||||
|             &spot_updates( | ||||
|                           $callback,   $::image_name, \%imagedef, | ||||
|                           \%::attrres, $lpp_source_name | ||||
|             ) != 0 | ||||
|           ) | ||||
|         { | ||||
|  | ||||
|             # error - could not update spots | ||||
|             return 1; | ||||
|         } | ||||
|  | ||||
|         # need to update spot if needed | ||||
|         # but put it later, after xcat osimage obj defined since xcatchroot needs it. | ||||
|          | ||||
|         # | ||||
|         # end diskless section | ||||
|         # | ||||
| @@ -3037,6 +3027,26 @@ sub mknimimage | ||||
|         return 1; | ||||
|     } | ||||
|  | ||||
|     # put diskless spot update after xcat obj def | ||||
|     # since xcatchroot needs osimage defined first | ||||
|  | ||||
|     if (($::NIMTYPE eq "diskless") || ($::NIMTYPE eq "dataless")) | ||||
|     { | ||||
|         # update spot with additional software and sync files | ||||
|         if ( | ||||
|             &spot_updates( | ||||
|                           $callback,   $::image_name, \%imagedef, | ||||
|                           \%::attrres, $lpp_source_name | ||||
|             ) != 0 | ||||
|           ) | ||||
|         { | ||||
|  | ||||
|             # error - could not update spots | ||||
|             return 1; | ||||
|         } | ||||
|     }     | ||||
|  | ||||
|  | ||||
| 	# | ||||
| 	# Set root password in diskless images | ||||
| 	# | ||||
|   | ||||
		Reference in New Issue
	
	Block a user