mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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>
This commit is contained in:
parent
1a3ab20ac6
commit
d8ab89a24b
|
|
@ -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}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user