[yocto] [meta-selinux][PATCH 2/2] mcstrans: specify INITDIR
Yi Zhao
yi.zhao at windriver.com
Thu Aug 29 01:53:53 PDT 2019
By default the mcstrans init script will be installed to
/etc/rc.d/init.d directory. Specify INITDIR to install it to /etc/init.d
directory.
Signed-off-by: Yi Zhao <yi.zhao at windriver.com>
---
recipes-security/selinux/mcstrans.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/recipes-security/selinux/mcstrans.inc b/recipes-security/selinux/mcstrans.inc
index e66633d..0eb8720 100644
--- a/recipes-security/selinux/mcstrans.inc
+++ b/recipes-security/selinux/mcstrans.inc
@@ -15,7 +15,7 @@ inherit systemd update-rc.d
DEPENDS += "libsepol libselinux libcap"
# We do not need "${D}/" as a prefix anymore.
-EXTRA_OEMAKE += "SBINDIR=${base_sbindir}"
+EXTRA_OEMAKE += "SBINDIR=${base_sbindir} INITDIR=${sysconfdir}/init.d"
do_install_append() {
install -d ${D}${sbindir}
--
2.7.4
More information about the yocto
mailing list