summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/network/tools.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/network/tools.pm b/lib/network/tools.pm
index 7a94d84..cdb556c 100644
--- a/lib/network/tools.pm
+++ b/lib/network/tools.pm
@@ -48,6 +48,10 @@ sub stop_net_interface {
}
sub connected() {
+ # if no resolv.conf from stage1, use the one we wrote in chroot:
+ if ($::isInstall && ! -e "/etc/resolv.conf") {
+ symlink "$::prefix/etc/resolv.conf", "/etc/resolv.conf";
+ }
c::res_init(); # reinit the resolver so DNS changes take affect
gethostbyname("www.mageia.org") ? 1 : 0;
}