diff options
author | Andreas Oberritter <obi@opendreambox.org> | 2019-11-07 21:42:34 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-11-07 17:43:44 -0800 |
commit | d8ab89a24b9350a045bfe0faa31b9545061ce092 (patch) | |
tree | 9889d8dcd26150e58a1375a2e6b7848d53caeb3d | |
parent | 1a3ab20ac6b995b95124daf9c5b3a6b77445514b (diff) | |
download | meta-openembedded-d8ab89a24b9350a045bfe0faa31b9545061ce092.tar.gz |
autofs: install sysvinit script manually if systemd is enabled
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>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-networking/recipes-daemons/autofs/autofs_5.1.6.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/autofs/autofs_5.1.6.bb b/meta-networking/recipes-daemons/autofs/autofs_5.1.6.bb index 4f61562731..54f0b99915 100644 --- a/meta-networking/recipes-daemons/autofs/autofs_5.1.6.bb +++ b/meta-networking/recipes-daemons/autofs/autofs_5.1.6.bb | |||
@@ -79,6 +79,11 @@ do_install_append () { | |||
79 | if [ -d ${D}${localstatedir}/run ]; then | 79 | if [ -d ${D}${localstatedir}/run ]; then |
80 | rmdir ${D}${localstatedir}/run | 80 | rmdir ${D}${localstatedir}/run |
81 | fi | 81 | fi |
82 | # On hybrid systemd/sysvinit builds, we need to install the sysvinit script by hand. | ||
83 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
84 | install -d -m 755 ${D}${INIT_D_DIR} | ||
85 | install -m 755 ${S}/samples/rc.autofs ${D}${INIT_D_DIR}/autofs | ||
86 | fi | ||
82 | } | 87 | } |
83 | SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}" | 88 | SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}" |
84 | 89 | ||