summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps_interactive.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r--perl-install/install_steps_interactive.pm12
1 files changed, 11 insertions, 1 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index dca0255d0..1ad5d3e2a 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -10,6 +10,7 @@ use vars qw(@ISA);
use common qw(:common);
use partition_table qw(:types);
use install_steps;
+use network;
use modules;
use lang;
use fs;
@@ -122,7 +123,16 @@ sub configureNetwork($) {
}
if ($r !~ /^Keep/) {
- $o->configureNetworkAsk or return;
+ my @l = first(network::getNet());
+ @l = ($l[0]) unless $::expert; # keep only one
+
+ foreach my $dev (@l) {
+ my ($l) = grep { $_->{DEVICE} eq $dev } @{$o->{intf}};
+
+ push @{$o->{intf}}, $l = { DEVICE => $dev } unless $l;
+ $o->configureNetworkIntf($l);
+ }
+ $o->configureNetworkNet($o->{netc} ||= {});
}
$o->SUPER::configureNetwork;
}