From: Ross Burton <[email protected]> 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 <[email protected]> --- meta/recipes-core/images/core-image-minimal-initramfs.bb | 3 +++ 1 file changed, 3 insertions(+) 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 = "" -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#191295): https://lists.openembedded.org/g/openembedded-core/message/191295 Mute This Topic: https://lists.openembedded.org/mt/102827167/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
