diff options
author | Chris Patterson <pattersonc@ainfosec.com> | 2016-03-29 14:46:28 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-03-31 09:14:04 -0400 |
commit | 2e74fb085b2d0a41a90e4d96459f8833a99d0ab8 (patch) | |
tree | 3132e88e1522f2c5e46346423ea9fd489080c7d2 | |
parent | c29fe5e3d094a8eb7ec6996fcb9a36ae3aaa68d4 (diff) | |
download | meta-virtualization-2e74fb085b2d0a41a90e4d96459f8833a99d0ab8.tar.gz |
xen: deploy efi binary, if present
Signed-off-by: Chris Patterson <pattersonc@ainfosec.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r-- | recipes-extended/xen/xen.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc index 1e953b68..354566db 100644 --- a/recipes-extended/xen/xen.inc +++ b/recipes-extended/xen/xen.inc | |||
@@ -895,12 +895,19 @@ pkg_postinst_${PN}-volatiles() { | |||
895 | 895 | ||
896 | do_deploy() { | 896 | do_deploy() { |
897 | install -d ${DEPLOYDIR} | 897 | install -d ${DEPLOYDIR} |
898 | |||
898 | if [ -f ${D}/boot/xen ]; then | 899 | if [ -f ${D}/boot/xen ]; then |
899 | install -m 0644 ${D}/boot/xen ${DEPLOYDIR}/xen-${MACHINE} | 900 | install -m 0644 ${D}/boot/xen ${DEPLOYDIR}/xen-${MACHINE} |
900 | fi | 901 | fi |
902 | |||
901 | if [ -f ${D}/boot/xen.gz ]; then | 903 | if [ -f ${D}/boot/xen.gz ]; then |
902 | install -m 0644 ${D}/boot/xen.gz ${DEPLOYDIR}/xen-${MACHINE}.gz | 904 | install -m 0644 ${D}/boot/xen.gz ${DEPLOYDIR}/xen-${MACHINE}.gz |
903 | fi | 905 | fi |
906 | |||
907 | if [ -f ${D}/usr/lib64/efi/xen.efi ]; then | ||
908 | install -m 0644 ${D}/usr/lib64/efi/xen.efi ${DEPLOYDIR}/xen-${MACHINE}.efi | ||
909 | fi | ||
910 | |||
904 | # Install the flask policy in the deploy directory if it exists | 911 | # Install the flask policy in the deploy directory if it exists |
905 | if [ -f ${D}/boot/${FLASK_POLICY_FILE} ]; then | 912 | if [ -f ${D}/boot/${FLASK_POLICY_FILE} ]; then |
906 | install -m 0644 ${D}/boot/${FLASK_POLICY_FILE} ${DEPLOYDIR} | 913 | install -m 0644 ${D}/boot/${FLASK_POLICY_FILE} ${DEPLOYDIR} |