[meta-virtualization] [PATCH] xen: deploy efi binary, if present
Chris Patterson
cjp256 at gmail.com
Tue Mar 29 11:46:28 PDT 2016
From: Chris Patterson <pattersonc at ainfosec.com>
Signed-off-by: Chris Patterson <pattersonc at ainfosec.com>
---
recipes-extended/xen/xen.inc | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc
index 9ae7c4e..de8c168 100644
--- a/recipes-extended/xen/xen.inc
+++ b/recipes-extended/xen/xen.inc
@@ -901,12 +901,19 @@ pkg_postinst_${PN}-volatiles() {
do_deploy() {
install -d ${DEPLOYDIR}
+
if [ -f ${D}/boot/xen ]; then
install -m 0644 ${D}/boot/xen ${DEPLOYDIR}/xen-${MACHINE}
fi
+
if [ -f ${D}/boot/xen.gz ]; then
install -m 0644 ${D}/boot/xen.gz ${DEPLOYDIR}/xen-${MACHINE}.gz
fi
+
+ if [ -f ${D}/usr/lib64/efi/xen.efi ]; then
+ install -m 0644 ${D}/usr/lib64/efi/xen.efi ${DEPLOYDIR}/xen-${MACHINE}.efi
+ 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}
--
2.1.4
More information about the meta-virtualization
mailing list