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

login
register
mail settings
Submitter Phil Blundell
Date Jan. 10, 2014, 12:57 p.m.
Message ID <1389358622.9182.150.camel@phil-desktop.brightsign>
Download mbox | patch
Permalink /patch/64525/
State Accepted
Commit 8b0be3ffb865d5918ed633c4b030640006d18984
Headers show

Comments

Phil Blundell - Jan. 10, 2014, 12:57 p.m.
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.

Signed-off-by: Phil Blundell <pb@pbcl.net>
---
 meta/classes/kernel-module-split.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/classes/kernel-module-split.bbclass b/meta/classes/kernel-module-split.bbclass
index 83d9a8f..97b61a0 100644
--- a/meta/classes/kernel-module-split.bbclass
+++ b/meta/classes/kernel-module-split.bbclass
@@ -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
 }