summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2015-01-27 13:23:37 +0800
committerChen Qi <Qi.Chen@windriver.com>2015-01-27 13:32:15 +0800
commitc15af3e02cb5027fb7eb2aaebf72a5f2bf016d23 (patch)
tree7f8f574e82b55b59bc09037d26eaf0eef9888e2b
parent24f19fedb40d0af84beb8e9a6595ea06f09d4615 (diff)
downloadopenembedded-core-contrib-ChenQi/udev-cache-stat.tar.gz
openembedded-core-contrib-ChenQi/udev-cache-stat.tar.bz2
openembedded-core-contrib-ChenQi/udev-cache-stat.zip
udev-cache: avoid using '-L' for statChenQi/udev-cache-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] Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
-rw-r--r--meta/recipes-core/udev/udev/init2
-rw-r--r--meta/recipes-core/udev/udev/udev-cache2
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/*"
# 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
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/*"
# 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