diff options
author | Jussi Kukkonen <jussi.kukkonen@intel.com> | 2017-01-19 10:39:53 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-20 11:53:50 +0000 |
commit | b699afaeb8ffa28302bf1e796a18637f6ed41682 (patch) | |
tree | 177dcfb26d8ae4d29f8af5cfba79f4ee15a5ea5c /meta/classes/update-rc.d.bbclass | |
parent | f7e642da23d7e67697bd00e9be665a08a2a19d56 (diff) | |
download | poky-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.bbclass | 4 |
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 @@ | |||
1 | UPDATERCPN ?= "${PN}" | 1 | UPDATERCPN ?= "${PN}" |
2 | 2 | ||
3 | DEPENDS_append_class-target = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', ' update-rc.d-native update-rc.d initscripts', '', d)}" | 3 | DEPENDS_append_class-target = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', ' update-rc.d initscripts', '', d)}" |
4 | 4 | ||
5 | UPDATERCD = "update-rc.d" | 5 | UPDATERCD = "update-rc.d" |
6 | UPDATERCD_class-cross = "" | 6 | UPDATERCD_class-cross = "" |
@@ -34,6 +34,8 @@ if ${@use_updatercd(d)} && type update-rc.d >/dev/null 2>/dev/null; then | |||
34 | fi | 34 | fi |
35 | } | 35 | } |
36 | 36 | ||
37 | PACKAGE_WRITE_DEPS += "update-rc.d-native" | ||
38 | |||
37 | updatercd_postinst() { | 39 | updatercd_postinst() { |
38 | # Begin section update-rc.d | 40 | # Begin section update-rc.d |
39 | if ${@use_updatercd(d)} && type update-rc.d >/dev/null 2>/dev/null; then | 41 | if ${@use_updatercd(d)} && type update-rc.d >/dev/null 2>/dev/null; then |