]> code.ossystems Code Review - openembedded-core.git/commit
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:30:33 +0000 (17:30 +0100)
commit84e0ec2e677fb0236a38478372cdd75797cf5a2e
tree0080e4d1ac84ada12e598f6bdd10431fddf99de8
parentfd9bad3e48a605e9fd28c129413300ff6b548788
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]

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