udev-cache: fix to use udev-cache correctly
authorChen Qi <Qi.Chen@windriver.com>
Tue, 18 Jun 2013 04:48:17 +0000 (12:48 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Jun 2013 16:44:56 +0000 (17:44 +0100)
commit341b63ba25f0dafccde4b556c28056079e17b34b
tree6443abaae91768b937b5178dcbf91761a8945a0a
parent5c2fe5f6babc6e4bf7b16702125ffa8cf0359001
udev-cache: fix to use udev-cache correctly

Previouly, the udev-cache has no real effect even if it's installed
into the system. The key problem here is that at first boot, the
/etc/dev.tar is not present, thus resulting /dev/shm/udev.cache not
created on first boot even if udev-cache is enabled.

This patch fixes this problem. The /dev/shm/udev.cache will be created
if necessary, that is, on first boot or when some part of the system is
changed. In the latter case, the udev cache may not be valid.

[YOCTO #4738]

(From OE-Core rev: 84e0ec2e677fb0236a38478372cdd75797cf5a2e)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd/init
meta/recipes-core/udev/udev/init
meta/recipes-core/udev/udev/udev-cache