aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2018-03-28 23:36:50 +0200
committerAndreas Oberritter <obi@opendreambox.org>2018-12-20 22:29:58 +0100
commitf42776e56cc04f25197594a80883bffd000cd84f (patch)
tree71fa6c3b9d011924991ef588fd3db0078570e2e7
parent82c7f743b5cc59317d1ff4daf926d757816548dc (diff)
downloadmeta-openembedded-contrib-f42776e56cc04f25197594a80883bffd000cd84f.tar.gz
meta-openembedded-contrib-f42776e56cc04f25197594a80883bffd000cd84f.tar.bz2
meta-openembedded-contrib-f42776e56cc04f25197594a80883bffd000cd84f.zip
autofs: install sysvinit script manually if systemd is enabledobi/sumo
Update-rc.d complains if no sysvinit script is present. This happens in hybrid systemd/sysvinit builds, because autofs does not install the init script if configured with '--with-systemd'. Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs_5.1.2.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/autofs/autofs_5.1.2.bb b/meta-networking/recipes-daemons/autofs/autofs_5.1.2.bb
index 1021dae3ab..a3c639969e 100644
--- a/meta-networking/recipes-daemons/autofs/autofs_5.1.2.bb
+++ b/meta-networking/recipes-daemons/autofs/autofs_5.1.2.bb
@@ -71,6 +71,11 @@ do_install_append () {
if [ -d ${D}${localstatedir}/run ]; then
rmdir ${D}${localstatedir}/run
fi
+ # On hybrid systemd/sysvinit builds, we need to install the sysvinit script by hand.
+ if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
+ install -d -m 755 ${D}${INIT_D_DIR}
+ install -m 755 ${S}/samples/rc.autofs ${D}${INIT_D_DIR}/autofs
+ fi
}
SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}"