Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 642682 - net-misc/connman: until reboot, no /var/run/connman created
Summary: net-misc/connman: until reboot, no /var/run/connman created
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Yixun Lan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-29 22:41 UTC by Piotr Karbowski (RETIRED)
Modified: 2018-08-23 13:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Karbowski (RETIRED) gentoo-dev 2017-12-29 22:41:49 UTC
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.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-01-03 23:47:48 UTC
tmpfiles_process is the function for postinst.
Comment 2 Larry the Git Cow gentoo-dev 2018-08-23 13:08:41 UTC
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(+)