Mageia Bugzilla – Attachment 2309 Details for
Bug 5772
Ethernet test fails when adding additional media
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
symlink chrooted /etc/resolv.conf into installer
5772-3.diff (text/plain), 450 bytes, created by
Thierry Vignaud
on 2012-05-14 14:44:51 CEST
(
hide
)
Description:
symlink chrooted /etc/resolv.conf into installer
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2012-05-14 14:44:51 CEST
Size:
450 bytes
patch
obsolete
>diff --git a/lib/network/tools.pm b/lib/network/tools.pm >index 7a94d84..02cc4d1 100644 >--- a/lib/network/tools.pm >+++ b/lib/network/tools.pm >@@ -49,6 +49,9 @@ sub stop_net_interface { > > sub connected() { > c::res_init(); # reinit the resolver so DNS changes take affect >+ if ($::isInstall && ! -e "/etc/resolv.conf") { >+ symlink "$::prefix/etc/resolv.conf", "/etc/resolv.conf"; >+ } > gethostbyname("www.mageia.org") ? 1 : 0; > } >
diff --git a/lib/network/tools.pm b/lib/network/tools.pm index 7a94d84..02cc4d1 100644 --- a/lib/network/tools.pm +++ b/lib/network/tools.pm @@ -49,6 +49,9 @@ sub stop_net_interface { sub connected() { c::res_init(); # reinit the resolver so DNS changes take affect + if ($::isInstall && ! -e "/etc/resolv.conf") { + symlink "$::prefix/etc/resolv.conf", "/etc/resolv.conf"; + } gethostbyname("www.mageia.org") ? 1 : 0; }
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 5772
:
2196
|
2200
|
2230
|
2235
|
2238
|
2239
|
2303
|
2308
|
2309
|
2310