]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
core-image-minimal-initramfs: don't install a kernel into the initramfs
authorRoss Burton <ross.burton@arm.com>
Mon, 27 Nov 2023 11:48:23 +0000 (11:48 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 Nov 2023 08:42:52 +0000 (08:42 +0000)
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 <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-core/images/core-image-minimal-initramfs.bb

index 1c08c7fec627a4985b523be89c2bfad45b7b0890..7bb0b2738c763255ccc9fb6cc26907878713b31d 100644 (file)
@@ -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 = ""