Bug 2788 - busybox:udhcpc: root_is_nfs() in /etc/udhcpc.d/50default always return flase
Summary: busybox:udhcpc: root_is_nfs() in /etc/udhcpc.d/50default always return flase
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.3
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.3 M3
Assignee: LiRongQing
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-07-18 10:21 UTC by LiRongQing
Modified: 2012-08-30 11:28 UTC (History)
5 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 LiRongQing 2012-07-18 10:21:33 UTC
1. The information of /proc/mounts as below
root@qemumips:~# cat /proc/mounts |grep nfs
192.168.7.1:yyy/ / nfs rw,relatime,vers=2,rsize=4096,wsize=4096,namlen=255,hard,nolock,proto=udp,port=3049,timeo=11,retrans=3,sec=sys,mountaddr=192.168.7.1,mountvers=1,mountport=3048,mountproto=udp,local_lock=all,addr=192.168.7.1 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
root@qemumips:~# 

2. The root_is_nfs() in /etc/udhcpc.d/50default as below

root_is_nfs() {
	grep -qe '^/dev/root.*\(nfs\|smbfs\|ncp\|coda\) .*' /proc/mounts
}

3. root_is_nfs alway returns false

root@qemumips:~# grep -e '^/dev/root.*\(nfs\|smbfs\|ncp\|coda\) .*' /proc/mounts 
root@qemumips:~#
Comment 2 Stefan Stanacar 2012-08-30 11:28:31 UTC
Verified.