From beaf7bddc46efc48a8c321bea9fc8b8d133fcc28 Mon Sep 17 00:00:00 2001 From: Jose Quaresma Date: Fri, 4 Nov 2022 16:56:29 +0000 Subject: [PATCH] base: initramfs-ostree-lmp-image: use a python anonimus to check IMAGE_FSTYPES Signed-off-by: Jose Quaresma --- .../recipes-core/images/initramfs-ostree-lmp-image.bb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/meta-lmp-base/recipes-core/images/initramfs-ostree-lmp-image.bb b/meta-lmp-base/recipes-core/images/initramfs-ostree-lmp-image.bb index f4f2e505b1..c92f84a695 100644 --- a/meta-lmp-base/recipes-core/images/initramfs-ostree-lmp-image.bb +++ b/meta-lmp-base/recipes-core/images/initramfs-ostree-lmp-image.bb @@ -27,9 +27,7 @@ IMAGE_LINGUAS = "" LICENSE = "MIT" -IMAGE_FSTYPES = "cpio.gz" -IMAGE_FSTYPES:remove = "wic wic.gz wic.bmap wic.nopt ext4 ext4.gz" -IMAGE_CLASSES:remove = "image_repo_manifest" +IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}" # avoid circular dependencies EXTRA_IMAGEDEPENDS = "" @@ -44,3 +42,10 @@ IMAGE_ROOTFS_EXTRA_SPACE = "0" IMAGE_OVERHEAD_FACTOR = "1.0" BAD_RECOMMENDATIONS += "busybox-syslog" + +python () { + initramfs_fstypes = d.getVar('INITRAMFS_FSTYPES') + image_fstypes = d.getVar('IMAGE_FSTYPES') + if image_fstypes != initramfs_fstypes: + bb.fatal('IMAGE_FSTYPES="%s" is not equal to INITRAMFS_FSTYPES="%s"' % (image_fstypes, initramfs_fstypes)) +}