Skip to content

Commit

Permalink
base: initramfs-ostree-lmp-image: use a python anonimus to check IMAG…
Browse files Browse the repository at this point in the history
…E_FSTYPES

Signed-off-by: Jose Quaresma <[email protected]>
  • Loading branch information
quaresmajose committed Nov 4, 2022
1 parent f8759e6 commit 5a1526e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions meta-lmp-base/recipes-core/images/initramfs-ostree-lmp-image.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand All @@ -47,3 +45,10 @@ BAD_RECOMMENDATIONS += "busybox-syslog"

SSTATE_SKIP_CREATION:task-image-qa = "0"
SSTATE_SKIP_CREATION:task-image-complete = "0"

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))
}

0 comments on commit 5a1526e

Please sign in to comment.