mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	In RHEV-M, we currently fail hard in the case where user did not set installnic/primarynic. In this scenario, instead of failing, just let firmware have a chance to fill it in
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14168 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -592,17 +592,17 @@ sub mkinstall { | ||||
|                         } else { | ||||
|                             $ksdev = $ent->{primarynic}; | ||||
|                         } | ||||
|                     } else { | ||||
|                         my $rsp; | ||||
|                         push @{$rsp->{data}}, "No network interface was set: installnic, primarynic"; | ||||
|                         xCAT::MsgUtils->message("E", $rsp, $callback); | ||||
|                     } | ||||
|                      | ||||
|                     # set the storage parameters | ||||
|                     $kcmdline .= " storage_init"; | ||||
|                      | ||||
|                     # set the bootif | ||||
|                     $kcmdline .= " BOOTIF=$ksdev ip=dhcp"; | ||||
| 		    if ($ksdev) {  | ||||
|                     	$kcmdline .= " BOOTIF=$ksdev ip=dhcp"; | ||||
| 	            } else { #let boot firmware fill it in | ||||
|                     	$kcmdline .= " ip=dhcp"; | ||||
| 		    } | ||||
|              | ||||
|                     # set the passwd for admin and root | ||||
|                     $kcmdline .=  " adminpw=$rhevm_hash->{$rhevm}->{host}->{$node}->{adminpw} rootpw=$rhevm_hash->{$rhevm}->{host}->{$node}->{rootpw} ssh_pwauth=1"; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user