Bug 483

Summary: NFS server initscript does not work
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Mark Hatle <mark.hatle>
Component: meta-yoctoAssignee: Qing He <qing.he>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, kevin.tian, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: 0.9   
Target Milestone: 0.9 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

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