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
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/6WEBBVZOGM2V7WBJGRHF6453M7BU3G4M/

Reply via email to