Patchwork [ross/systemd,1/2] systemd: disable udev initscript when systemd is active

login
register
mail settings
Submitter Andreas Oberritter
Date March 18, 2013, 3:49 p.m.
Message ID <1363621784-22855-1-git-send-email-obi@opendreambox.org>
Download mbox | patch
Permalink /patch/46401/
State New
Headers show

Comments

Andreas Oberritter - March 18, 2013, 3:49 p.m.
* systemd's unit is called "systemd-udev", which doesn't
  match the name of the initscript

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
 meta/recipes-core/systemd/systemd_197.bb |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/meta/recipes-core/systemd/systemd_197.bb b/meta/recipes-core/systemd/systemd_197.bb
index 50d052f..6ce3890 100644
--- a/meta/recipes-core/systemd/systemd_197.bb
+++ b/meta/recipes-core/systemd/systemd_197.bb
@@ -106,6 +106,7 @@  do_install() {
 	if ${@base_contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then
 		install -d ${D}${sysconfdir}/init.d
 		install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev
+		ln -sf /dev/null ${D}${systemd_unitdir}/system/udev.service
 	fi
 }