[meta-virtualization] [PATCH] xen-image-minimal: if DISTRO_FEATURES is missing xen error
Doug Goldstein
cardoe at cardoe.com
Fri Dec 16 09:27:07 PST 2016
On 1/22/16 10:57 PM, Doug Goldstein wrote:
> It can be confusing to users why things are failing with missing kernel
> dependencies when you don't have 'xen' in your DISTRO_FEATURES. This
> should provide them with some better info.
>
> Signed-off-by: Doug Goldstein <cardoe at cardoe.com>
> ---
>
> The result of this change is the following output:
>
> | DEBUG: Executing shell function do_check_xen_state
> | ERROR: DISTRO_FEATURES does not contain 'xen'
> | WARNING: exit code 1 from a shell command.
>
> ---
> recipes-extended/images/xen-image-minimal.bb | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/recipes-extended/images/xen-image-minimal.bb b/recipes-extended/images/xen-image-minimal.bb
> index 26b6d06..b8c2002 100644
> --- a/recipes-extended/images/xen-image-minimal.bb
> +++ b/recipes-extended/images/xen-image-minimal.bb
> @@ -20,6 +20,14 @@ LICENSE = "MIT"
>
> inherit core-image
>
> +do_check_xen_state() {
> + if [ "${@bb.utils.contains('DISTRO_FEATURES', 'xen', ' yes', 'no', d)}" = "no" ]; then
> + die "DISTRO_FEATURES does not contain 'xen'"
> + fi
> +}
> +
> +addtask check_xen_state before do_rootfs
> +
> syslinux_iso_populate_append() {
> install -m 0444 ${STAGING_DATADIR}/syslinux/libcom32.c32 ${ISODIR}${ISOLINUXDIR}
> install -m 0444 ${STAGING_DATADIR}/syslinux/mboot.c32 ${ISODIR}${ISOLINUXDIR}
>
Ping? This would have solved Andrew Stuart's thread from 11/11/16.
--
Doug Goldstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 959 bytes
Desc: OpenPGP digital signature
URL: <http://lists.yoctoproject.org/pipermail/meta-virtualization/attachments/20161216/1613ad15/attachment.pgp>
More information about the meta-virtualization
mailing list