Skip to contentSkip to conversation

systemd: disable udev initscript when systemd is active

PATCH New Andreas Oberritter 1 participant 2 messages Mar 18, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 systemd: disable udev initscript when systemd is active

* systemd's unit is called "systemd-udev", which doesn't match the name of the initscript

---
 meta/recipes-core/systemd/systemd_197.bb |    1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/systemd/systemd_197.bb +1 -0
index 50d052f..6ce3890 100644
@@ -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
 }
 
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 2/2 dbus: disable initscript when systemd is active

* systemd's unit is called "dbus", which doesn't
match the name of the initscript

---
 meta/recipes-core/dbus/dbus.inc |    3 +++
 1 file changed, 3 insertions(+)
meta/recipes-core/dbus/dbus.inc +3 -0
index affffbc..3769a68 100644
@@ -88,6 +88,9 @@ do_install() {
 		install -d ${D}${sysconfdir}/init.d
 		sed 's:@bindir@:${bindir}:' < ${WORKDIR}/dbus-1.init >${WORKDIR}/dbus-1.init.sh
 		install -m 0755 ${WORKDIR}/dbus-1.init.sh ${D}${sysconfdir}/init.d/dbus-1
+		if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
+			ln -sf /dev/null ${D}${systemd_unitdir}/system/dbus-1.service
+		fi
 	fi
 
 	install -d ${D}${sysconfdir}/default/volatiles
Signature · 1 line
1.7.10.4