summaryrefslogtreecommitdiffstats
path: root/meta/classes/update-rc.d.bbclass
diff options
context:
space:
mode:
authorJussi Kukkonen <jussi.kukkonen@intel.com>2017-01-19 10:39:53 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-20 11:53:50 +0000
commitb699afaeb8ffa28302bf1e796a18637f6ed41682 (patch)
tree177dcfb26d8ae4d29f8af5cfba79f4ee15a5ea5c /meta/classes/update-rc.d.bbclass
parentf7e642da23d7e67697bd00e9be665a08a2a19d56 (diff)
downloadpoky-b699afaeb8ffa28302bf1e796a18637f6ed41682.tar.gz
update-rc.d: Add PACKAGE_WRITE_DEPS for postinst
use_updatercd() will always return true in rootfs generation so checking that is not required. (From OE-Core rev: 0db5328ee2a80152904b9f82b738f92e9e38da55) Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/update-rc.d.bbclass')
-rw-r--r--meta/classes/update-rc.d.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass
index 9d3a7bc0c7..36f9009500 100644
--- a/meta/classes/update-rc.d.bbclass
+++ b/meta/classes/update-rc.d.bbclass
@@ -1,6 +1,6 @@
1UPDATERCPN ?= "${PN}" 1UPDATERCPN ?= "${PN}"
2 2
3DEPENDS_append_class-target = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', ' update-rc.d-native update-rc.d initscripts', '', d)}" 3DEPENDS_append_class-target = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', ' update-rc.d initscripts', '', d)}"
4 4
5UPDATERCD = "update-rc.d" 5UPDATERCD = "update-rc.d"
6UPDATERCD_class-cross = "" 6UPDATERCD_class-cross = ""
@@ -34,6 +34,8 @@ if ${@use_updatercd(d)} && type update-rc.d >/dev/null 2>/dev/null; then
34fi 34fi
35} 35}
36 36
37PACKAGE_WRITE_DEPS += "update-rc.d-native"
38
37updatercd_postinst() { 39updatercd_postinst() {
38# Begin section update-rc.d 40# Begin section update-rc.d
39if ${@use_updatercd(d)} && type update-rc.d >/dev/null 2>/dev/null; then 41if ${@use_updatercd(d)} && type update-rc.d >/dev/null 2>/dev/null; then