systemd: disable udev initscript when systemd is active
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
Signed-off-by Andreas Oberritter <[email protected]>
--- meta/recipes-core/systemd/systemd_197.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-core/systemd/systemd_197.bb +1 -0
@@ -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
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
Signed-off-by Andreas Oberritter <[email protected]>
--- meta/recipes-core/dbus/dbus.inc | 3 +++ 1 file changed, 3 insertions(+)
meta/recipes-core/dbus/dbus.inc +3 -0
@@ -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