mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-01 13:58:04 +00:00
selinux-initsh.inc: install selinux-init.sh and selinux-labeldev.sh when using systemd
The commit 5fd3c5b71e introduced an issue
that selinux-init.sh and selinux-labeldev.sh are not installed when
using systemd which will cause the selinux-ini.service and
selinux-labeldev.service fail to startup. Move the do_install codes from
selinux-autorelabel to selinux-initsh.inc to make sure install these
scripts when using systemd.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
parent
557d807edd
commit
8ce3dccfda
|
|
@ -21,9 +21,6 @@ require selinux-initsh.inc
|
|||
|
||||
do_install_append() {
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||
install -d ${D}${bindir}
|
||||
install -m 0755 ${WORKDIR}/${SELINUX_SCRIPT_SRC}.sh ${D}${bindir}
|
||||
sed -i -e '/.*HERE$/d' ${D}${bindir}/${SELINUX_SCRIPT_SRC}.sh
|
||||
echo "# first boot relabelling" > ${D}/.autorelabel
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,8 +27,13 @@ do_install () {
|
|||
-e '/.*HERE$/d' -e '/.*Contents.*sysvinit/d' \
|
||||
${D}${sysconfdir}/init.d/${SELINUX_SCRIPT_DST}
|
||||
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -m 0644 ${WORKDIR}/${SELINUX_SCRIPT_SRC}.service ${D}${systemd_unitdir}/system
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -m 0644 ${WORKDIR}/${SELINUX_SCRIPT_SRC}.service ${D}${systemd_unitdir}/system
|
||||
install -d ${D}${bindir}
|
||||
install -m 0755 ${WORKDIR}/${SELINUX_SCRIPT_SRC}.sh ${D}${bindir}
|
||||
sed -i -e '/.*HERE$/d' ${D}${bindir}/${SELINUX_SCRIPT_SRC}.sh
|
||||
fi
|
||||
}
|
||||
|
||||
sysroot_stage_all_append () {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user