It should be possible to manually override the resolv.conf
now by bind mounting an empty file on /etc/resolv.conf in
the chroot. I've been meaning to play with this, but have
not made time to do it until just now.
I thought something like this would work:
'/etc/resolv.conf'))" >> /etc/mock/site-defaults.cfg
But testing this briefly, the host resolv.conf still ends up
in the chroot. I'm probably overlooking something obvious.
At least, I hope I am.
echo "config_opts['nspawn_args'] =
<mock-chroot> sh-4.4# time curl http://example.com/
curl: (6) Could not resolve host: example.com
A proper patch for mock will pass the --bind option to
systemd-nspawn automatically when use_host_resolv is not
The worst thing about history is that every time it repeats itself,
the price goes up.