On 30.5.2018 16:48, Todd Zullinger wrote:
This works:
touch /etc/mock/empty
echo "config_opts['nspawn_args'] =
['--bind=/etc/mock/empty:/etc/resolv.conf']" \
>> /etc/mock/site-defaults.cfg
<mock-chroot> sh-4.4# time curl
http://example.com/
curl: (6) Could not resolve host:
example.com
real 0m0.016s
user 0m0.005s
sys 0m0.008s
A proper patch for mock will pass the --bind option to
systemd-nspawn automatically when use_host_resolv is not
set.
Thank you!
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok