Fix a defect for the function that generate network boot kernel parameters

This commit is contained in:
ertaozh 2015-02-16 21:29:27 -05:00
parent 4530a2f3ec
commit 733e2bc0cd

View File

@ -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";