Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203852 - net-fs/nfs-utils-1.1.0-r1: cannot open file `/etc/exports' for reading
Summary: net-fs/nfs-utils-1.1.0-r1: cannot open file `/etc/exports' for reading
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2007-12-31 03:48 UTC by Sven
Modified: 2007-12-31 15:55 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Sven 2007-12-31 03:48:56 UTC

the script /etc/init.d/nfs expects /etc/exports to exist. The file is not installed by any package or stage tarball. Hence, it doesn't exist on "vanilla" systems.

Running " -u" gives:
# -u
 * Caching service dependencies ...
awk: cmd. line:1: fatal: cannot open file `/etc/exports' for reading (No such file or directory)
 *  Can't find service 'rpc.gssd' needed by 'nfs';  continuing...                                                                                  [ ok ]

The offending lines in /etc/init.d/nfs seem to be:
depend() {
        local myneed=""
        if ! awk '!/^[[:space:]]*#/ && $2 ~ /sec=/ { exit 1 }' /etc/exports ; then
                myneed="${myneed} rpc.gssd"

The script should check for the file's existence.

A workaround is, to run "touch /etc/exports".

Reproducible: Always

Steps to Reproduce:
Comment 2 Sven 2007-12-31 15:50:50 UTC
Now i get:
# -u
 * Caching service dependencies ...
/var/lib/init.d/depcache: line 274: config: command not found
/var/lib/init.d/depcache: line 367: config: command not found 

Because of
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-12-31 15:55:39 UTC
So file a new bug.