Mageia Bugzilla – Attachment 2303 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]
write resolver conf in both chroot & installer root
5772-2.diff (text/plain), 662 bytes, created by
Thierry Vignaud
on 2012-05-14 10:30:10 CEST
(
hide
)
Description:
write resolver conf in both chroot & installer root
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2012-05-14 10:30:10 CEST
Size:
662 bytes
patch
obsolete
>diff --git a/lib/network/network.pm b/lib/network/network.pm >index ccc3ec9..c438dc5 100644 >--- a/lib/network/network.pm >+++ b/lib/network/network.pm >@@ -166,7 +166,10 @@ sub write_resolv_conf { > my @old = map { "# nameserver $_\n" } @{$prev{nameserver}}; > @new, @old; > }; >- output_with_perm($file, 0644, @search, @nameserver, (map { "# $_\n" } @unknown), "\n# ppp temp entry\n"); >+ # so that we can resolv in installer as well: >+ foreach my $f ($file, $resolv_file) { >+ output_with_perm($f, 0644, @search, @nameserver, (map { "# $_\n" } @unknown), "\n# ppp temp entry\n"); >+ } > > c::res_init(); # reinit the resolver so DNS changes take affect > 1;
diff --git a/lib/network/network.pm b/lib/network/network.pm index ccc3ec9..c438dc5 100644 --- a/lib/network/network.pm +++ b/lib/network/network.pm @@ -166,7 +166,10 @@ sub write_resolv_conf { my @old = map { "# nameserver $_\n" } @{$prev{nameserver}}; @new, @old; }; - output_with_perm($file, 0644, @search, @nameserver, (map { "# $_\n" } @unknown), "\n# ppp temp entry\n"); + # so that we can resolv in installer as well: + foreach my $f ($file, $resolv_file) { + output_with_perm($f, 0644, @search, @nameserver, (map { "# $_\n" } @unknown), "\n# ppp temp entry\n"); + } c::res_init(); # reinit the resolver so DNS changes take affect 1;
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