diff mbox series

[2/4] kernel.bbclass: Pass the kernel package name to depmodwrapper

Message ID 20220909220425.2737985-2-andrei@gherzan.com
State Accepted, archived
Commit 5105820df4800673c188366a76c1a3bd387a7148
Headers show
Series [1/4] depmodwrapper-cross: Take into consideration kernel package name | expand

Commit Message

Andrei Gherzan Sept. 9, 2022, 10:04 p.m. UTC
From: Andrei Gherzan <andrei.gherzan@huawei.com>

This makes sure that the postinstall script it using the right kernel
paths.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 meta/classes-recipe/kernel.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass
index de1b80d0ae..e4e69e0763 100644
--- a/meta/classes-recipe/kernel.bbclass
+++ b/meta/classes-recipe/kernel.bbclass
@@ -677,7 +677,7 @@  pkg_postinst:${KERNEL_PACKAGE_NAME}-base () {
 		mkdir -p $D/lib/modules/${KERNEL_VERSION}
 	fi
 	if [ -n "$D" ]; then
-		depmodwrapper -a -b $D ${KERNEL_VERSION}
+		depmodwrapper -a -b $D ${KERNEL_VERSION} ${KERNEL_PACKAGE_NAME}
 	else
 		depmod -a ${KERNEL_VERSION}
 	fi