Currently, connman try to use /var/run/connman/resolv.conf, the directory is created by opentmpfiles, however, until reboot, the opentmpfiles-setup is not trigged. Here I use dnsmasq as a local dns server, with /etc/resolv.conf set to 127.0.0.1 with immutable bit. I set dnsmasq to read /var/run/connman/resolv.conf as it's upstream, however, on a fresh system, after installing connman and connecting to network, this file will not exist, until opentmpfiles-setup is re-executed, so, most likelly reboot. It would be best to actually trigger tmpfiles after connman installation.
tmpfiles_process is the function for postinst.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d97b6a9805352dc8aa083b9b8467e3a8d03bdc8 commit 2d97b6a9805352dc8aa083b9b8467e3a8d03bdc8 Author: Ben Kohler <bkohler@gentoo.org> AuthorDate: 2018-08-23 12:53:53 +0000 Commit: Ben Kohler <bkohler@gentoo.org> CommitDate: 2018-08-23 13:03:41 +0000 net-misc/connman: add myself as maintainer, bump to 1.36, iwd support Added myself to maintainers list after several attempts to contact existing maintainer. Bump to version 1.36 and remove obsoleted patches. Also add support for net-misc/iwd backend. Also process tmpfiles. Closes: https://bugs.gentoo.org/642682 Closes: https://bugs.gentoo.org/657696 Package-Manager: Portage-2.3.48, Repoman-2.3.10 net-misc/connman/Manifest | 1 + net-misc/connman/connman-1.36.ebuild | 94 ++++++++++++++++++++++++++++++++++++ net-misc/connman/metadata.xml | 5 ++ 3 files changed, 100 insertions(+)