]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-module-split: Remove extraneous call to depmod from module postinst
authorPhil Blundell <pb@pbcl.net>
Fri, 10 Jan 2014 12:57:02 +0000 (12:57 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Jan 2014 15:13:47 +0000 (15:13 +0000)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-module-split.bbclass

index 9a4329dcc9fab4935cd91062548fa581ad5f8e40..d43f7431cb20fd62bdea656ab2bd2286694feb1e 100644 (file)
@@ -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
 }