Bug 483 - NFS server initscript does not work
Summary: NFS server initscript does not work
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 0.9
Hardware: x86 Multiple
: Medium normal
Target Milestone: 0.9 M4
Assignee: Qing He
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-10-18 16:20 UTC by Mark Hatle
Modified: 2010-12-21 06:07 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Hatle 2010-10-18 16:20:35 UTC
When you run the /etc/init.d/nfsserver script it does not startup the NFS server.


test -x "$NFS_MOUNTD" || NFS_MOUNTD=/usr/sbin/mountd
test -x "$NFS_NFSD" || NFS_NFSD=/usr/sbin/nfsd
test -x "$NFS_STATD" || NFS_STATD=/usr/sbin/statd

At a minimum the above is wrong.  The values should be "rpc.mountd", "rpc.nfsd" and "rpc.statd".
Comment 1 Qing He 2010-10-19 18:30:51 UTC
Changing these to rpc.mountd, rpc.nfsd, rpc.statd can eliminate initscript errors. However, nfs still doesn't work

# exportfs -av
exporting *:/
# mount localhost:/ /mnt
(won't return here)
Comment 2 Mark Hatle 2010-10-19 18:33:54 UTC
You need to make sure that NFSD is enable in the kernel.  Assuming it is, you also need to make sure you have an ethernet device enabled (loopback apparently isn't enough).

I have been successfully using NFS from my target board once I did those things.
Comment 3 Richard Purdie 2010-10-20 02:31:02 UTC
Initscript issue fixed in master in http://git.pokylinux.org/cgit.cgi/poky/commit/?id=5ee6384d9990a7da25a352c308e698d3f3990d6d