Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 459600 - net-fs/nfs-utils: /etc/init.d/nfs does not handle /etc/exports.d
Summary: net-fs/nfs-utils: /etc/init.d/nfs does not handle /etc/exports.d
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-27 20:46 UTC by Joakim Tjernlund
Modified: 2013-03-28 11:10 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 Joakim Tjernlund 2013-02-27 20:46:43 UTC
if /etc/exports is empty, /etc/exports.d is ignored

This is due to this in /etc/init.d/nfs:
        if grep -qs '^[[:space:]]*/' /etc/exports ; then
		ebegin "Exporting NFS directories"
		${exportfs} -r &
		waitfor_exportfs $!
		eend $?
	fi

The grep comes back empty so exportfs -r is never executed.
I don't understand why the test need to be there in the first
place but if it is to remain a test for /etc/exports/*.exports
is needed too.
Comment 1 Joakim Tjernlund 2013-02-27 20:50:06 UTC
should be /etc/exports.d/*.exports
Ebuild version is 1.2.6
Comment 2 SpanKY gentoo-dev 2013-03-24 19:37:28 UTC
should be all set now in the tree; thanks for the report!

Commit message: Process /etc/exports.d/*.exports too
http://sources.gentoo.org/net-fs/nfs-utils/files/nfs.initd?r1=1.26&r2=1.27
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2013-03-28 11:10:41 UTC
(In reply to comment #2)
> should be all set now in the tree; thanks for the report!
> 
> Commit message: Process /etc/exports.d/*.exports too
> http://sources.gentoo.org/net-fs/nfs-utils/files/nfs.initd?r1=1.26&r2=1.27

Hi!

What about creating the /etc/exports.d directory in ebuild?
So files can be just dropped?

Thanks.