mirror of
https://git.yoctoproject.org/meta-security
synced 2026-05-07 04:58:47 +00:00
Fix build issue for apparmor when systemd is used
When systemd is used as system init manager, there is a build issue complains "can't found apparmor.service". This patch fix it. Signed-off-by: Jinliang Li <jinliang.li@linux.alibaba.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
b38f027b93
commit
f9c5e2022b
@@ -104,6 +104,11 @@ do_install () {
|
|||||||
|
|
||||||
install ${WORKDIR}/apparmor ${D}/${INIT_D_DIR}/apparmor
|
install ${WORKDIR}/apparmor ${D}/${INIT_D_DIR}/apparmor
|
||||||
install ${WORKDIR}/functions ${D}/lib/apparmor
|
install ${WORKDIR}/functions ${D}/lib/apparmor
|
||||||
|
if [ "${VIRTUAL-RUNTIME_init_manager}" = "systemd" ]; then
|
||||||
|
install -d ${D}${systemd_system_unitdir}
|
||||||
|
install ${WORKDIR}/apparmor.service \
|
||||||
|
${D}${systemd_system_unitdir}
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
do_compile_ptest () {
|
do_compile_ptest () {
|
||||||
|
|||||||
Reference in New Issue
Block a user