[oe-commits] [meta-openembedded] 21/22: autofs: install sysvinit script manually if systemd is enabled

git at git.openembedded.org git at git.openembedded.org
Fri Nov 8 01:44:39 UTC 2019


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit d8ab89a24b9350a045bfe0faa31b9545061ce092
Author: Andreas Oberritter <obi at opendreambox.org>
AuthorDate: Thu Nov 7 21:42:34 2019 +0100

    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 at opendreambox.org>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-networking/recipes-daemons/autofs/autofs_5.1.6.bb | 5 +++++
 1 file changed, 5 insertions(+)

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 4f61562..54f0b99 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 () {
     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}"
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list