Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673330 - net-fs/autofs init.d script should use "nfsclient" for nfs client dependency
Summary: net-fs/autofs init.d script should use "nfsclient" for nfs client dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Yixun Lan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-17 11:15 UTC by razamatan
Modified: 2019-08-12 21:52 UTC (History)
1 user (show)

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 razamatan 2018-12-17 11:15:02 UTC
historically, it's using nfs and portmap to capture the nfs client use case.  using "nfsclient" is probably the better way to go going forward now.

i had to do this manually in my current install to avoid autofs starting up before the nfs client idmap facilities were ready.

$ diff -u /usr/portage/net-fs/autofs/files/autofs5.initd /etc/init.d/autofs 
--- /usr/portage/net-fs/autofs/files/autofs5.initd	2017-02-28 12:43:13.000000000 -0800
+++ /etc/init.d/autofs	2018-12-17 02:57:24.118605169 -0800
@@ -7,8 +7,8 @@
 DEVICE=autofs
 
 depend() {
-	need localmount	
-	use ypbind nfs slapd portmap net
+	need localmount
+	use ypbind nfs slapd portmap net nfsclient
 }
 
 extra_started_commands="reload"
Comment 1 Larry the Git Cow gentoo-dev 2019-08-12 21:52:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89d602ebf3cd3590bfe10c02e6d66aaef455bdd2

commit 89d602ebf3cd3590bfe10c02e6d66aaef455bdd2
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-08-12 20:26:46 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-08-12 21:52:02 +0000

    net-fs/autofs: Depend on nfsclient
    
    ... rather than nfs and portmap.
    
    Closes: https://bugs.gentoo.org/673330
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 net-fs/autofs/files/autofs5.initd | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)