From 3864dfb7366dad8a823f417f920882b5896903dd Mon Sep 17 00:00:00 2001 From: Gabriel Ionescu Date: Tue, 5 Dec 2017 15:08:13 +0100 Subject: run-postinsts: don't call update-rc.d if systemd is present This patch removes the call to update-rc.d in order to fix the console login issue for the Cavium board. Signed-off-by: Gabriel Ionescu Signed-off-by: Adrian Dudau --- recipes-devtools/run-postinsts/run-postinsts_1.0.bbappend | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/recipes-devtools/run-postinsts/run-postinsts_1.0.bbappend b/recipes-devtools/run-postinsts/run-postinsts_1.0.bbappend index 37b648b..c800e85 100644 --- a/recipes-devtools/run-postinsts/run-postinsts_1.0.bbappend +++ b/recipes-devtools/run-postinsts/run-postinsts_1.0.bbappend @@ -1,7 +1,14 @@ -# Don't run 'dpkg --configure' for debs, because it is already executed by a -# service included in the dpkg recipe do_install_append() { - sed -i 's/backend_list="rpm deb ipk"/backend_list="rpm ipk"/' \ - ${D}${sbindir}/run-postinsts + # Don't run 'dpkg --configure' for debs, because it is already executed by a + # service included in the dpkg recipe + if ${@bb.utils.contains('PACKAGE_CLASSES', 'package_deb', 'true', 'false', d)}; then + sed -i 's/backend_list="rpm deb ipk"/backend_list="rpm ipk"/' \ + ${D}${sbindir}/run-postinsts + fi + + # Don't call update-rc.d remove if systemd is present + if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then + sed -i "s/update-rc.d -f run-postinsts remove/:/" ${D}${sbindir}/run-postinsts + fi } -- cgit v1.2.3-54-g00ecf