Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 727218 - net-wireless/iwd - iService 'netmount' needs non existant service 'net'
Summary: net-wireless/iwd - iService 'netmount' needs non existant service 'net'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ben Kohler
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-05 08:04 UTC by charles17
Modified: 2020-09-06 12:31 UTC (History)
2 users (show)

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


Attachments
iwd-1.7 build log (iwd.1.7 build log,32.30 KB, application/octet-stream)
2020-06-05 08:11 UTC, charles17
Details

Note You need to log in before you can comment on or make changes to this bug.
Description charles17 2020-06-05 08:04:33 UTC
On booting, independant from the installed version:

 * /run/lock: correcting owner
 * Caching service dependencies ...
 iService 'netmount' needs non existant service 'net'
Comment 1 charles17 2020-06-05 08:11:24 UTC
Created attachment 643522 [details]
iwd-1.7 build log
Comment 2 Ben Kohler gentoo-dev 2020-06-05 17:30:10 UTC
Are you asking for iwd to be listed as a net provider on its own?
Comment 3 charles17 2020-06-05 18:43:28 UTC
(In reply to Ben Kohler from comment #2)
> Are you asking for iwd to be listed as a net provider on its own?

Sorry, I am unsure about the implications and not really familiar with best practice for init.d files.  And I haven't tried iwd together with netmount.

But I have tried with "provide net" in iwd's init.d file (seen this in dhcpcd) and openrc seems to be happy.

Even if you run iwd together with dhcpcd, both having "provide net", ther is no confusion.

It's just a proposal.
Comment 4 Ben Kohler gentoo-dev 2020-06-05 18:48:49 UTC
I don't currently consider iwd standalone to be a usable net provider, are you using it on its own like that?

I believe you have to enable the internal DHCP/IP configuration manually, and there is still no resolv.conf handling that I know of.
Comment 5 charles17 2020-06-05 18:58:11 UTC
(In reply to Ben Kohler from comment #4)
> I don't currently consider iwd standalone to be a usable net provider, are
> you using it on its own like that?

That's exactly what I am doing, as proposed by https://wiki.gentoo.org/wiki/Iwd#iwd_native 

> 
> I believe you have to enable the internal DHCP/IP configuration manually,
> and there is still no resolv.conf handling that I know of.

Is there any need to have such?
Comment 6 Ben Kohler gentoo-dev 2020-06-05 19:02:03 UTC
(In reply to charles17 from comment #5)
> Is there any need to have such?

To claim to "provide net", I would lean towards "yes".

What are you using to handle resolving, openresolv or systemd or other?
Comment 7 charles17 2020-06-05 19:11:49 UTC
(In reply to Ben Kohler from comment #6)
> [...]
> What are you using to handle resolving, openresolv or systemd or other?

Not any.  Isn't it as stated in the wiki "As of version 0.19 iwd contains a DHCP client and can manage routes and DNS resolving."
Comment 8 Ben Kohler gentoo-dev 2020-06-05 19:20:02 UTC
So it updates your resolv.conf for you?  Or what is handling that?
Comment 9 charles17 2020-06-05 19:38:15 UTC
(In reply to Ben Kohler from comment #8)
> So it updates your resolv.conf for you?  Or what is handling that?

Just tested. It doesn't, at least not out of the box.  It was still using the existing resolv.conf file.
Comment 10 Ben Kohler gentoo-dev 2020-06-05 19:38:54 UTC
This is not going to work very well as you move from one network to another
Comment 11 charles17 2020-06-06 09:41:22 UTC
Using something like this in RDEPEND should pull in openresolv if dhcpcd is not installed:

resolvconf? ( || ( net-dns/openresolv net-misc/dhcpcd ) )
Comment 12 Roy Marples 2020-08-07 10:22:06 UTC
If it supports resolvconf it should pull in openresolv regardless of dhcpcd - as dhcpcd supports it natively too.
Comment 13 Ben Kohler gentoo-dev 2020-08-07 15:21:50 UTC
I'm not actively using this kind of setup, but maybe we can add a new USE flag to iwd like "standalone".  This flag could ensure that all of the proper deps & settings (iwd/main.conf changes, "provide net" in conf.d/iwd, etc) are added so that iwd can run w/o dhcpcd or NM or other stuff.
Comment 14 Larry the Git Cow gentoo-dev 2020-09-03 17:37:44 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08966208e5ed1f41923e5207e6cbec70b2cd3cb9

commit 08966208e5ed1f41923e5207e6cbec70b2cd3cb9
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2020-09-03 16:45:29 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2020-09-03 17:37:34 +0000

    net-wireless/iwd: revbump to test new standalone mode
    
    Bug: https://bugs.gentoo.org/727218
    
    Package-Manager: Portage-3.0.5, Repoman-3.0.1
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 net-wireless/iwd/iwd-1.8-r2.ebuild | 179 +++++++++++++++++++++++++++++++++++++
 net-wireless/iwd/metadata.xml      |   2 +
 2 files changed, 181 insertions(+)
Comment 15 Ben Kohler gentoo-dev 2020-09-03 17:39:02 UTC
Can you test iwd-1.8-r2 with USE=standalone?
Comment 16 charles17 2020-09-04 11:34:39 UTC
(In reply to Ben Kohler from comment #15)
> Can you test iwd-1.8-r2 with USE=standalone?

Message (comment #0) gone.  Seems to work.
Comment 17 Ben Kohler gentoo-dev 2020-09-06 12:31:05 UTC
Thanks for testing.  If you think of some improvements needed for the ebuild checks, please open a new bug.