diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-01-06 15:27:34 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-06 22:17:28 +0000 |
commit | acaf650aa4d458120038ba431c2d1ea563f90f77 (patch) | |
tree | 110954607a9f68e66b7f528d0f3058cdfe82c924 | |
parent | f4ae4399140ef61bafdd9223583a249279959ae1 (diff) | |
download | poky-acaf650aa4d458120038ba431c2d1ea563f90f77.tar.gz |
initscripts: split the functions script into a separate package
Many SysV init scripts need the /etc/init.d/functions script. But
this script is part of the initscripts package. As a result, the
initscripts package should always be installed into the system to
avoid errors when starting daemons. However, it makes no sense to
install the initscripts package into a systemd based image, because
what the init scripts provide has already been provided by the systemd.
On the other hand, the functions script might be still needed in a
systemd based image because other init scripts such as distcc might need
it.
The above situation leads to a natural separation of the functions script
from the initscripts package. And this patch does so. It separates the
functions script into initscripts-functions packages.
(From OE-Core rev: 736dd8380f41d6ff1d3d0e4fe33cc01e2e873ef6)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/initscripts/initscripts_1.0.bb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb index 5951e0c198..d1644a3204 100644 --- a/meta/recipes-core/initscripts/initscripts_1.0.bb +++ b/meta/recipes-core/initscripts/initscripts_1.0.bb | |||
@@ -42,8 +42,12 @@ KERNEL_VERSION = "" | |||
42 | inherit update-alternatives | 42 | inherit update-alternatives |
43 | DEPENDS_append = " update-rc.d-native" | 43 | DEPENDS_append = " update-rc.d-native" |
44 | 44 | ||
45 | ALTERNATIVE_PRIORITY = "90" | 45 | PACKAGES =+ "${PN}-functions" |
46 | ALTERNATIVE_${PN} = "functions" | 46 | RDEPENDS_${PN} = "${PN}-functions" |
47 | FILES_${PN}-functions = "${sysconfdir}/init.d/functions*" | ||
48 | |||
49 | ALTERNATIVE_PRIORITY_${PN}-functions = "90" | ||
50 | ALTERNATIVE_${PN}-functions = "functions" | ||
47 | ALTERNATIVE_LINK_NAME[functions] = "${sysconfdir}/init.d/functions" | 51 | ALTERNATIVE_LINK_NAME[functions] = "${sysconfdir}/init.d/functions" |
48 | 52 | ||
49 | HALTARGS ?= "-d -f" | 53 | HALTARGS ?= "-d -f" |