Bug #4580, Parse Mac Address before generate network boot params
This commit is contained in:
parent
73ed881e05
commit
78cdcc04b3
@ -837,7 +837,11 @@ sub mkinstall
|
||||
if ($maxmem) {
|
||||
$kcmdline.=" mem=$maxmem";
|
||||
}
|
||||
my $net_params = xCAT::NetworkUtils->gen_net_boot_params($ent->{installnic},$ent->{primarynic},$macent->{mac});
|
||||
|
||||
# parse Mac table to get one mac address in case there are multiples.
|
||||
$mac = xCAT::Utils->parseMacTabEntry($macent->{mac},$node);
|
||||
|
||||
my $net_params = xCAT::NetworkUtils->gen_net_boot_params($ent->{installnic},$ent->{primarynic},$mac);
|
||||
if (exists($net_params->{nicname})) {
|
||||
$kcmdline .= " netcfg/choose_interface=". $net_params->{nicname};
|
||||
} elsif (exists($net_params->{mac})) {
|
||||
|
Loading…
Reference in New Issue
Block a user