From 733e2bc0cda0396fa4ae2aab01f62f9c8e39abef Mon Sep 17 00:00:00 2001 From: ertaozh Date: Mon, 16 Feb 2015 21:29:27 -0500 Subject: [PATCH] Fix a defect for the function that generate network boot kernel parameters --- perl-xCAT/xCAT/NetworkUtils.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/NetworkUtils.pm b/perl-xCAT/xCAT/NetworkUtils.pm index d6116d783..9dea7bef6 100755 --- a/perl-xCAT/xCAT/NetworkUtils.pm +++ b/perl-xCAT/xCAT/NetworkUtils.pm @@ -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";