From 36df082f125fdb623622c6defed03c112539cd1e Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Sat, 4 May 2019 11:46:12 +0200 Subject: linux-driver-package: fix do rootfs Assign the systemd service in the package providing them. Prevents the following do_rootfs error if linux-driver-package is installed but linux-driver-package-*boot is not: | WARNING: linux-driver-package.postinst returned 1, marking as unpacked only, configuration required on target. | ERROR: Postinstall scriptlets of ['linux-driver-package'] have failed. If the intention is to defer them to first boot, | then please place them into pkg_postinst_ontarget_${PN} (). This is caused by sytemctl trying to enable the not existing services nv.service and nvfb.service. Signed-off-by: Max Krummenacher --- recipes-bsp/binary-drivers/linux-driver-package_21.%.bbappend | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes-bsp/binary-drivers/linux-driver-package_21.%.bbappend b/recipes-bsp/binary-drivers/linux-driver-package_21.%.bbappend index 90bc0ae..73fa967 100644 --- a/recipes-bsp/binary-drivers/linux-driver-package_21.%.bbappend +++ b/recipes-bsp/binary-drivers/linux-driver-package_21.%.bbappend @@ -96,4 +96,5 @@ do_install_append () { install -m 0755 ${NV_SAMPLE}/usr/lib/arm-linux-gnueabihf/gstreamer-0.10/libnvgstjpeg.so ${D}${libdir}/gstreamer-0.10 } -SYSTEMD_SERVICE_${PN} = "nvfb.service nv.service" +SYSTEMD_SERVICE_${PN}-boot = "nv.service" +SYSTEMD_SERVICE_${PN}-firstboot = "nvfb.service" -- cgit v1.2.3