1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

lsb: add checking for chkconfig existence when creating the symbolic

remove_initd and remove_initd will be created as the symbolic file
of chkconfig, which will be not existed when systemd is configured,
so adding the check for the existence of chkconfig before creating
the symbolic.

(From OE-Core rev: 0417cc64516c47fb4daddc80e41e3f9c6ab927fc)

Signed-off-by: Zhenbo Gao <zhenbo.gao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Zhenbo Gao
2017-07-17 17:13:08 +08:00
committed by Richard Purdie
parent 8fb8a21b7d
commit 52be83b3c1
+6 -4
View File
@@ -90,11 +90,13 @@ do_install_append() {
install -m 0755 ${WORKDIR}/init-functions ${D}${nonarch_base_libdir}/lsb
# create links for LSB test
if [ "${nonarch_base_libdir}" != "${nonarch_libdir}" ] ; then
install -d ${D}${nonarch_libdir}/lsb
if [ -e ${sbindir}/chkconfig ]; then
if [ "${nonarch_base_libdir}" != "${nonarch_libdir}" ] ; then
install -d ${D}${nonarch_libdir}/lsb
fi
ln -sf ${sbindir}/chkconfig ${D}${nonarch_libdir}/lsb/install_initd
ln -sf ${sbindir}/chkconfig ${D}${nonarch_libdir}/lsb/remove_initd
fi
ln -sf ${sbindir}/chkconfig ${D}${nonarch_libdir}/lsb/install_initd
ln -sf ${sbindir}/chkconfig ${D}${nonarch_libdir}/lsb/remove_initd
if [ "${TARGET_ARCH}" = "x86_64" ]; then
if [ "${base_libdir}" != "${base_prefix}/lib64" ]; then