[meta-virtualization] [PATCHv2 3/4] xen: add the flask policy to the set of files installed to the deploy directory

Chris Patterson cjp256 at gmail.com
Tue Mar 29 08:00:42 PDT 2016


Built, deployed OK, LGTM, +1

On Tue, Mar 29, 2016 at 8:46 AM, Derek Straka <derek at asterius.io> wrote:
> Signed-off-by: Derek Straka <derek at asterius.io>
> ---
>  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 77740cf..ae09b8b 100644
> --- a/recipes-extended/xen/xen.inc
> +++ b/recipes-extended/xen/xen.inc
> @@ -878,6 +878,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
> --
> 1.9.1
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization


More information about the meta-virtualization mailing list