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.

(From OE-Core rev: e8db81e4655ab7535db04aa3c8d7f9868ced6039)

Signed-off-by: Phil Blundell <pb@pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Phil Blundell 2014-01-10 12:57:02 +00:00 committed by Richard Purdie
parent 21c5cb7d88
commit 8b0be3ffb8
1 changed files with 3 additions and 1 deletions

View 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
}