]> code.ossystems Code Review - openembedded-core.git/commitdiff
udev-cache: avoid using '-L' for stat
authorChen Qi <Qi.Chen@windriver.com>
Tue, 27 Jan 2015 05:35:23 +0000 (13:35 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Jan 2015 10:37:52 +0000 (10:37 +0000)
stat command from stat package doesn't support '-L' option, so avoid
using it to get rid of boot errors like below.

Populating dev cache
stat: invalid option -- 'L'
Usage: stat [-l] [-f] [-s] [-v] [-h] [-t] [-c format] file1 [file2 ...]

[YOCTO #7210]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/udev/udev/init
meta/recipes-core/udev/udev/udev-cache

index 94dbba37deb1a88f46e9cedf3ef7959c76cd36ad..0ab028b391eb3e75243f963d2384ed1e479c7ed1 100644 (file)
@@ -29,7 +29,7 @@ META_FILE_LIST="lib/udev/rules.d/* etc/udev/rules.d/*"
 # Command to compute system configuration.
 sysconf_cmd () {
        cat -- $CMP_FILE_LIST
-       stat -L -c '%s %Y %n' -- $META_FILE_LIST | awk -F/ '{print $1 " " $NF;}'
+       stat -c '%s %Y %n' -- $META_FILE_LIST | awk -F/ '{print $1 " " $NF;}'
 }
 
 [ -f /etc/default/udev-cache ] && . /etc/default/udev-cache
index 895b1971c4f64223754305359d7323da4af5c96d..df97000dde32b3383e60862b1be5c8c7b151503b 100644 (file)
@@ -32,7 +32,7 @@ META_FILE_LIST="lib/udev/rules.d/* etc/udev/rules.d/*"
 # Command to compute system configuration.
 sysconf_cmd () {
        cat -- $CMP_FILE_LIST
-       stat -L -c '%s %Y %n' -- $META_FILE_LIST | awk -F/ '{print $1 " " $NF;}'
+       stat -c '%s %Y %n' -- $META_FILE_LIST | awk -F/ '{print $1 " " $NF;}'
 }
 
 [ -f /etc/default/udev-cache ] && . /etc/default/udev-cache