From 033af14650c0133b287fb6cbd56064994cfaf9a3 Mon Sep 17 00:00:00 2001 From: Derek Straka Date: Tue, 29 Mar 2016 08:46:39 -0400 Subject: xen: add the flask policy to the set of files installed to the deploy directory Signed-off-by: Derek Straka Signed-off-by: Bruce Ashfield --- recipes-extended/xen/xen.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc index a28fece6..2a5ac3d2 100644 --- a/recipes-extended/xen/xen.inc +++ b/recipes-extended/xen/xen.inc @@ -880,6 +880,11 @@ do_deploy() { if [ -f ${D}/boot/xen.gz ]; then install -m 0644 ${D}/boot/xen.gz ${DEPLOYDIR}/xen-${MACHINE}.gz fi + # Install the flask policy in the deploy directory if it exists + if [ -f ${D}/boot/${FLASK_POLICY_FILE} ]; then + install -m 0644 ${D}/boot/${FLASK_POLICY_FILE} ${DEPLOYDIR} + ln -sf ${FLASK_POLICY_FILE} ${DEPLOYDIR}/xenpolicy-${MACHINE} + fi } addtask deploy after do_populate_sysroot -- cgit v1.2.3-54-g00ecf