Skip to contentSkip to conversation

core-image-initramfs-boot: install all kernel modules

PATCH In review [email protected] 2 participants 2 messages Feb 26, 2024 – Feb 27, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 core-image-initramfs-boot: install all kernel modules

From: Ross Burton <[email protected]>

The point of a "just boot" initramfs is to contain the kernel modules so that the kernel can find the real root filesystem, so explicitly add them.

---
 meta/recipes-core/images/core-image-initramfs-boot.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/images/core-image-initramfs-boot.bb +1 -1
index 72589447513..cb6837a43d6 100644
@@ -4,7 +4,7 @@ LICENSE = "MIT"
 
 INITRAMFS_SCRIPTS ?= "initramfs-framework-base initramfs-module-udev"
 
-PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} base-passwd"
+PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} base-passwd kernel-modules"
 
 # Ensure the initramfs only contains the bare minimum
 IMAGE_FEATURES = ""
Signature · 1 line
2.34.1
#1 lore raw
Quoted 20 lines · Ross Burton

From: Ross Burton <[email protected]>

The point of a "just boot" initramfs is to contain the kernel modules so that the kernel can find the real root filesystem, so explicitly add them.

---
 meta/recipes-core/images/core-image-initramfs-boot.bb | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/images/core-image-initramfs-boot.bb +0 -0
index 72589447513..cb6837a43d6 100644
@@ -4,7 +4,7 @@ LICENSE = "MIT"


 INITRAMFS_SCRIPTS ?= "initramfs-framework-base initramfs-module-udev"

meta/recipes-core/images/core-image-initramfs-boot.bb +1 -1
-PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} base-passwd"
+PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} base-passwd kernel-modules"
Quoted 3 lines


 # Ensure the initramfs only contains the bare minimum IMAGE_FEATURES = ""

We've managed this long without doing this and that is a pretty horrible potentially large dependency to add in :(

Yes, the system may need some of the modules to load the rootfs but a large majority will not be.

I'd much prefer we had a list of things which should be promoted into the initramfs if present.

I appreciate that isn't straigtforward to do but equally if I merge this, we basically just give in and start to look like a desktop distro, lets just put everything everywhere :(.

Cheers,

Richard