]> code.ossystems Code Review - openembedded-core.git/commit
busybox:udhcpc: fix the root_is_nfs() function
authorRoy.Li <rongqing.li@windriver.com>
Tue, 24 Jul 2012 01:23:19 +0000 (09:23 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jul 2012 13:39:49 +0000 (14:39 +0100)
commit9921cb0104ea36daf909c110bb6767e5fd307da0
tree3a249f1851c07cce24bf04ef1c8965f130b0315a
parent45b8dcc65b46c68151093a2931cce675abb92813
busybox:udhcpc: fix the root_is_nfs() function

[YOCTO #2788]

The system will be hung when udhcpc starts, if nfs is mounted
at "/" directory and default route is different after starting
udhcpc.

The cause is that root_is_nfs() does not work after kernel-2.6.37,
since the device name has been changed from /dev/root to
${IPADDR}:${NFSDIR} on /proc/mounts. which leads to remove
the default routes to nfs server,

Now we use a loose match to check if rootfs is nfs.

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-core/busybox/busybox_1.19.4.bb
meta/recipes-core/busybox/files/simple.script