mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	Fix a defect for the function that generate network boot kernel parameters
This commit is contained in:
		@@ -2509,13 +2509,12 @@ sub gen_net_boot_params
 | 
			
		||||
        $net_params->{nicname} = $nicname;
 | 
			
		||||
        $net_params->{mac} = $mac;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if ($nicname) {
 | 
			
		||||
        $net_params->{ksdevice} = "ksdevice=$nicname";
 | 
			
		||||
        $net_params->{ip} = "ip=$nicname:dhcp";
 | 
			
		||||
        $net_params->{netdev} = "netdev=$nicname";
 | 
			
		||||
        $net_params->{netdevice} = "netdevice=$nicname";
 | 
			
		||||
        $net_params->{ifname} = "ifname=$nodebootif:$mac";
 | 
			
		||||
        $net_params->{ifname} = "ifname=$nicname:$mac";
 | 
			
		||||
    } elsif ($mac) {
 | 
			
		||||
        $net_params->{ksdevice} = "ksdevice=$mac";
 | 
			
		||||
        $net_params->{BOOTIF} = "BOOTIF=$mac";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user