mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-01 13:58:04 +00:00
autorelabel: only selinux-autorelabel need autorelabel file
With previous implementation, several packages provided .autorelabel file while only selinux-autorelabel manage it. If there is several packages which try to install .autorelabel file, an issue occur during installation of packagegroup-core-selinux. Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
parent
44d7604139
commit
5fd3c5b71e
|
|
@ -18,3 +18,12 @@ SRC_URI = "file://${BPN}.sh \
|
|||
INITSCRIPT_PARAMS = "start 01 S ."
|
||||
|
||||
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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ do_install () {
|
|||
|
||||
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}${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
|
||||
}
|
||||
|
||||
sysroot_stage_all_append () {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user