]> code.ossystems Code Review - openembedded-core.git/commitdiff
update-rc.d: Add PACKAGE_WRITE_DEPS for postinst
authorJussi Kukkonen <jussi.kukkonen@intel.com>
Thu, 19 Jan 2017 08:39:53 +0000 (10:39 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Jan 2017 22:51:09 +0000 (22:51 +0000)
use_updatercd() will always return true in rootfs generation so
checking that is not required.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
meta/classes/update-rc.d.bbclass

index 9d3a7bc0c779f274d0b5e66a8884c9eb5848e9eb..36f9009500b471c55cfe5daf6d5e3d2bede16bf7 100644 (file)
@@ -1,6 +1,6 @@
 UPDATERCPN ?= "${PN}"
 
-DEPENDS_append_class-target = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', ' update-rc.d-native update-rc.d initscripts', '', d)}"
+DEPENDS_append_class-target = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', ' update-rc.d initscripts', '', d)}"
 
 UPDATERCD = "update-rc.d"
 UPDATERCD_class-cross = ""
@@ -34,6 +34,8 @@ if ${@use_updatercd(d)} && type update-rc.d >/dev/null 2>/dev/null; then
 fi
 }
 
+PACKAGE_WRITE_DEPS += "update-rc.d-native"
+
 updatercd_postinst() {
 # Begin section update-rc.d
 if ${@use_updatercd(d)} && type update-rc.d >/dev/null 2>/dev/null; then