From 4c42c6d31d42c4baa721b6d7b0fbf9a10a78f81c Mon Sep 17 00:00:00 2001 From: DanyLE Date: Tue, 1 Aug 2023 15:15:49 +0200 Subject: [PATCH] add kernel modules to the initramfs --- recipes-core/images/core-image-recovery.bb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/recipes-core/images/core-image-recovery.bb b/recipes-core/images/core-image-recovery.bb index 39bb4ea..162bc61 100644 --- a/recipes-core/images/core-image-recovery.bb +++ b/recipes-core/images/core-image-recovery.bb @@ -2,7 +2,7 @@ DESCRIPTION = "Recovery initramfs image." -PACKAGE_INSTALL = "recovery-boot busybox ${VIRTUAL-RUNTIME_base-utils} udev base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}" +PACKAGE_INSTALL = "recovery-boot kernel-modules busybox ${VIRTUAL-RUNTIME_base-utils} udev base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}" # Do not pollute the initrd image with rootfs features IMAGE_FEATURES = "" @@ -20,4 +20,10 @@ IMAGE_ROOTFS_SIZE = "8192" IMAGE_ROOTFS_EXTRA_SPACE = "0" # Use the same restriction as initramfs-module-install -COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*)-(linux.*|freebsd.*)' \ No newline at end of file +COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*)-(linux.*|freebsd.*)' + +ROOTFS_POSTPROCESS_COMMAND += "clobber_unused" + +clobber_unused () { + rm ${IMAGE_ROOTFS}/boot/* +} \ No newline at end of file