[oe-commits] Phil Blundell : kernel-module-split: Remove extraneous call to depmod from module postinst

git at git.openembedded.org git at git.openembedded.org
Fri Jan 10 15:20:19 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: e8db81e4655ab7535db04aa3c8d7f9868ced6039
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=e8db81e4655ab7535db04aa3c8d7f9868ced6039

Author: Phil Blundell <pb at pbcl.net>
Date:   Fri Jan 10 12:57:02 2014 +0000

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.

Signed-off-by: Phil Blundell <pb at pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/kernel-module-split.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/classes/kernel-module-split.bbclass b/meta/classes/kernel-module-split.bbclass
index 9a4329d..d43f743 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
 }
 



More information about the Openembedded-commits mailing list