Patchwork udev: Add RRECOMMENDS for udev-cache to enable the cache

login
register
mail settings
Submitter Saul Wold
Date July 1, 2013, 6:58 p.m.
Message ID <1372705105-28268-1-git-send-email-sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/52741/
State Accepted
Commit 0214dba342dc0f48bd429f5a4f9a1223835d7ec6
Headers show

Comments

Saul Wold - July 1, 2013, 6:58 p.m.
This will enable the udev cache for sysvinit systems, which does improve post-first
boots.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-core/udev/udev.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Koen Kooi - July 2, 2013, 8:42 a.m.
Op 1 jul. 2013, om 20:58 heeft Saul Wold <sgw@linux.intel.com> het volgende geschreven:

> This will enable the udev cache for sysvinit systems, which does improve post-first
> boots.

But will it stay disabled for non-sysv init systems?
Qi.Chen@windriver.com - July 2, 2013, 9:03 a.m.
On 07/02/2013 04:42 PM, Koen Kooi wrote:
> Op 1 jul. 2013, om 20:58 heeft Saul Wold <sgw@linux.intel.com> het volgende geschreven:
>
>> This will enable the udev cache for sysvinit systems, which does improve post-first
>> boots.
> But will it stay disabled for non-sysv init systems?

I think so. After all, it's not recommended in systemd.
For systemd init systems, there's really no reason to enable udev-cache, 
from my point of view.

Best Regards,
Chen Qi

> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>

Patch

diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc
index d30f7de..6606707 100644
--- a/meta/recipes-core/udev/udev.inc
+++ b/meta/recipes-core/udev/udev.inc
@@ -54,7 +54,7 @@  INITSCRIPT_NAME_udev-cache = "udev-cache"
 INITSCRIPT_PARAMS_udev-cache = "start 36 S ."
 
 FILES_${PN} += "${libexecdir} ${libdir}/ConsoleKit ${nonarch_base_libdir}/udev"
-RRECOMMENDS_${PN} += "udev-utils"
+RRECOMMENDS_${PN} += "udev-utils udev-cache"
 
 FILES_${PN}-dbg += "${libexecdir}/.debug"
 FILES_${PN}-dbg += "${base_libdir}/udev/.debug/"