mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-24 13:21:12 +00:00
Bug #4580, Parse Mac Address before generate network boot params
This commit is contained in:
@@ -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})) {
|
||||
|
Reference in New Issue
Block a user