summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/ethernet.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm
index b40ecfd0f..2ac3a4986 100644
--- a/perl-install/network/ethernet.pm
+++ b/perl-install/network/ethernet.pm
@@ -113,7 +113,8 @@ sub get_eth_card_mac_address {
#- write interfaces MAC address in iftab
sub update_iftab() {
- foreach my $intf (detect_devices::getNet()) {
+ #- skip aliases interfaces
+ foreach my $intf (grep { !/:\d+$/ } detect_devices::getNet()) {
my ($link_type, $mac_address) = get_eth_card_mac_address($intf) or next;
#- do not write zeroed MAC addresses in iftab, it confuses ifrename
$mac_address =~ /^[0:]+$/ and next;