Red Hat Bugzilla – Bug 238101
/etc/mock/defaults.cfg is missing setting for chroot resolv.conf
Last modified: 2013-01-09 23:17:11 EST
Description of problem:
Some software like openssl tests use dns queries quite heavily when being built.
By default mock writes /etc/resolv.conf pointing dns queries to 192.168.1.1.
That's problem when 192.168.1.1 is not dns server in network.
The problem is that defaults.cfg which is default configuration file doesn't
even have setting for resolv.conf contents in chroot.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. install and configure mock
2. try to rebuild openssl - it takes looong time.
Created attachment 153581 [details]
add setting for resolv.conf contents into defaults.cfg
How about we add an option to copy in the host /dev/resolv.conf? Something like:
config_opts['use_host_resolv'] = True
Which would trigger a copy of resolv.conf from /etc/ to the chroot?
Very good idea. Other files needing same config treatment are:
/etc/hosts, sometimes resolver is not available on build host
/etc/localtime, time in mock root is several hours different from system time.
mock-0.7.1-1.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report.
I can confirm that there is in fact a setting and if enabled (it is by default)
the host resolve.conf is indeed placed into the chroot and is functional.
*** Bug 237663 has been marked as a duplicate of this bug. ***
mock-0.7.1-1.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report.