Skip to contentSkip to conversation

kernel-module-split: Remove extraneous call to depmod from module postinst

PATCH New Phil Blundell 1 participant 1 message Jan 10, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel-module-split: Remove extraneous call to depmod from module postinst

During rootfs construction, image.bbclass will call depmod after all the modules are installed. There's no need to run it from the postinst when operating in offline root mode.

---
 meta/classes/kernel-module-split.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/classes/kernel-module-split.bbclass +3 -1
index 83d9a8f..97b61a0 100644
@@ -2,7 +2,9 @@ pkg_postinst_modules () {
 if [ -z "$D" ]; then
 	depmod -a ${KERNEL_VERSION}
 else
-	depmodwrapper -a -b $D ${KERNEL_VERSION}
+	# image.bbclass will call depmodwrapper after everything is installed,
+	# no need to do it here as well
+	:
 fi
 }
 
Signature · 1 line
1.8.5