Bug 7210

Summary: Invaild option '-L' for stat when udev-cache starting
Product: [Runtime] System Startup Reporter: Yi Zhao <yi.zhao>
Component: system-startupAssignee: Chen Qi <Qi.Chen>
Status: VERIFIED FIXED QA Contact: Yi Zhao <yi.zhao>
Severity: normal    
Priority: Medium CC: alexandru.c.georgescu, ke.zou, kevin.tian, richard.purdie, sgw, yi.zhao, zhangle.yang
Version: 1.8   
Target Milestone: 1.8   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Yi Zhao 2015-01-21 02:49:27 UTC
Image location: http://autobuilder.yoctoproject.org/pub/releases/yocto-1.8_M2.rc1
Git rev: master/d9d5b8b499af3ae01a1e33d0d3969c54c2d4ab1b

This issue exists in core-image-sato-sdk image for p1022ds, mpc8315 and edgerouter. When the system startup, I got the following error:
############################
...
Populating dev cache
stat: invalid option -- 'L'
Usage: stat [-l] [-f] [-s] [-v] [-h] [-t] [-c format] file1 [file2 ...]
...
############################

The cause is the stat command for stat package doesn't support -L option:
################################
root@edgerouter:~# which stat
/bin/stat
root@edgerouter:~# ls -l /bin/stat
lrwxrwxrwx 1 root root 14 Jan 20  2015 /bin/stat -> /bin/stat.stat
root@edgerouter:~# rpm -qf /bin/stat
busybox-1.22.1-r32.mips64
coreutils-8.23-r0.mips64
stat-3.3-r0.mips64
root@edgerouter:~# rpm -qf /bin/stat.stat 
stat-3.3-r0.mips64
root@edgerouter:~# stat
Usage: stat [-l] [-f] [-s] [-v] [-h] [-t] [-c format] file1 [file2 ...]
root@edgerouter:~#
####################
Comment 2 Yi Zhao 2015-02-04 08:03:05 UTC
Verified with 1.8 M2 rc2 build.
Git rev: master/22c38e2d8a058619e3d05534b5e830b750aa4241