diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2015-01-27 13:35:23 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-29 15:36:50 +0000 |
commit | 14ef8b98bb581cee7518b668ba43c1240ae82d8b (patch) | |
tree | 4d81fbd383bb7d75ea3458eb2f2144a1ef875bf3 /meta/recipes-core/udev | |
parent | 2b7d3110fc8e7c406cf3e14a3a122de3b22a2a73 (diff) | |
download | poky-14ef8b98bb581cee7518b668ba43c1240ae82d8b.tar.gz |
udev-cache: avoid using '-L' for stat
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]
(From OE-Core rev: 4ef8cc01906833847386fd441d87a89cbdda7e25)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/udev')
-rw-r--r-- | meta/recipes-core/udev/udev/init | 2 | ||||
-rw-r--r-- | meta/recipes-core/udev/udev/udev-cache | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init index 94dbba37de..0ab028b391 100644 --- a/meta/recipes-core/udev/udev/init +++ b/meta/recipes-core/udev/udev/init | |||
@@ -29,7 +29,7 @@ META_FILE_LIST="lib/udev/rules.d/* etc/udev/rules.d/*" | |||
29 | # Command to compute system configuration. | 29 | # Command to compute system configuration. |
30 | sysconf_cmd () { | 30 | sysconf_cmd () { |
31 | cat -- $CMP_FILE_LIST | 31 | cat -- $CMP_FILE_LIST |
32 | stat -L -c '%s %Y %n' -- $META_FILE_LIST | awk -F/ '{print $1 " " $NF;}' | 32 | stat -c '%s %Y %n' -- $META_FILE_LIST | awk -F/ '{print $1 " " $NF;}' |
33 | } | 33 | } |
34 | 34 | ||
35 | [ -f /etc/default/udev-cache ] && . /etc/default/udev-cache | 35 | [ -f /etc/default/udev-cache ] && . /etc/default/udev-cache |
diff --git a/meta/recipes-core/udev/udev/udev-cache b/meta/recipes-core/udev/udev/udev-cache index 895b1971c4..df97000dde 100644 --- a/meta/recipes-core/udev/udev/udev-cache +++ b/meta/recipes-core/udev/udev/udev-cache | |||
@@ -32,7 +32,7 @@ META_FILE_LIST="lib/udev/rules.d/* etc/udev/rules.d/*" | |||
32 | # Command to compute system configuration. | 32 | # Command to compute system configuration. |
33 | sysconf_cmd () { | 33 | sysconf_cmd () { |
34 | cat -- $CMP_FILE_LIST | 34 | cat -- $CMP_FILE_LIST |
35 | stat -L -c '%s %Y %n' -- $META_FILE_LIST | awk -F/ '{print $1 " " $NF;}' | 35 | stat -c '%s %Y %n' -- $META_FILE_LIST | awk -F/ '{print $1 " " $NF;}' |
36 | } | 36 | } |
37 | 37 | ||
38 | [ -f /etc/default/udev-cache ] && . /etc/default/udev-cache | 38 | [ -f /etc/default/udev-cache ] && . /etc/default/udev-cache |