From: Ross Burton Date: Mon, 27 Nov 2023 11:48:23 +0000 (+0000) Subject: core-image-minimal-initramfs: don't install a kernel into the initramfs X-Git-Tag: yocto-5.2~4469 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2914e6a912c9aa014a05015c3401675d10c0f13b;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git core-image-minimal-initramfs: don't install a kernel into the initramfs There's obviously no point in installing a kernel into an initramfs, but if we install kernel modules then they'll recommend the relevant kernel. Set PACKAGE_EXCLUDE to ensure the initramfs for a kernel doesn't contain the kernel. Signed-off-by: Ross Burton Signed-off-by: Alexandre Belloni --- diff --git a/meta/recipes-core/images/core-image-minimal-initramfs.bb b/meta/recipes-core/images/core-image-minimal-initramfs.bb index 1c08c7fec62..7bb0b2738c7 100644 --- a/meta/recipes-core/images/core-image-minimal-initramfs.bb +++ b/meta/recipes-core/images/core-image-minimal-initramfs.bb @@ -17,6 +17,9 @@ PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} udev base- # Do not pollute the initrd image with rootfs features IMAGE_FEATURES = "" +# Don't allow the initramfs to contain a kernel +PACKAGE_EXCLUDE = "kernel-image-*" + export IMAGE_BASENAME = "${MLPREFIX}core-image-minimal-initramfs" IMAGE_NAME_SUFFIX ?= "" IMAGE_LINGUAS = ""