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
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
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: ---


Attachments

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
Hi,

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 "depscan.sh -u" gives:
# depscan.sh -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"
        fi


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:
# depscan.sh -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
http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?r1=1.7&r2=1.8
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-12-31 15:55:39 UTC
So file a new bug.