mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	fix bugs that no BOOTIF set for ubuntu diskless
This commit is contained in:
		| @@ -1435,7 +1435,7 @@ sub mknetboot | ||||
|         #} | ||||
|         # append the mac address | ||||
|         my $mac; | ||||
|         if( $useifname && $machash->{$node}->[0] && $machash->{$node}->[0]->{'mac'}) { | ||||
|         if( !$useifname && $machash->{$node}->[0] && $machash->{$node}->[0]->{'mac'}) { | ||||
|             # TODO: currently, only "mac" attribute with classic style is used, the "|" delimited string of "macaddress!hostname" format is not used | ||||
|             $mac = $machash->{$node}->[0]->{'mac'}; | ||||
| #            if ( (index($mac, "|") eq -1) and (index($mac, "!") eq -1) ) { | ||||
| @@ -1449,9 +1449,9 @@ sub mknetboot | ||||
| #            } | ||||
|         } | ||||
|  | ||||
|         if ($useifname && $mac) { | ||||
|             $kcmdline .= "$mac "; | ||||
|         } | ||||
|         #if ($useifname && $mac) { | ||||
|         #    $kcmdline .= "$mac "; | ||||
|         #} | ||||
|  | ||||
|         # add "netdev=<eth0>" or "BOOTIF=<mac>"  | ||||
|         # which are used for other scenarios | ||||
| @@ -1463,7 +1463,7 @@ sub mknetboot | ||||
|         } elsif ( $reshash->{$node}->[0] and $reshash->{$node}->[0]->{primarynic} and $reshash->{$node}->[0]->{primarynic} ne "mac") { | ||||
|             $kcmdline .= "netdev=" . $reshash->{$node}->[0]->{primarynic} . " "; | ||||
|         } else { | ||||
|             if ( $useifname && $mac) { | ||||
|             if ( !$useifname && $mac) { | ||||
|                 $kcmdline .= "BOOTIF=" . $mac . " "; | ||||
|             } | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user