[meta-virtualization] [PATCH 3/4] xen: add the flask policy to the set of files installed to the deploy directory
Derek Straka
derek at asterius.io
Thu Mar 24 08:31:30 PDT 2016
Signed-off-by: Derek Straka <derek at asterius.io>
---
recipes-extended/xen/xen.inc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc
index 77740cf..bddab6b 100644
--- a/recipes-extended/xen/xen.inc
+++ b/recipes-extended/xen/xen.inc
@@ -878,6 +878,12 @@ 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} xenpolicy-${MACHINE}
+ mv xenpolicy-${MACHINE} ${DEPLOYDIR}
+ fi
}
addtask deploy after do_populate_sysroot
--
1.9.1
More information about the meta-virtualization
mailing list