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

Submitted by Andreas Oberritter on March 18, 2013, 3:49 p.m.

Details

Message ID 1363621784-22855-1-git-send-email-obi@opendreambox.org
State New, archived
Headers show

Commit Message

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 hide | download patch | download mbox

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
 }