]> code.ossystems Code Review - openembedded-core.git/commitdiff
modutils-initscripts: Use depmod -a when modules.dep is empty
authorDiego Sueiro <diego.sueiro@arm.com>
Tue, 8 Dec 2020 11:44:59 +0000 (11:44 +0000)
committerSteve Sakoman <steve@sakoman.com>
Mon, 4 Jan 2021 14:50:23 +0000 (04:50 -1000)
To correctly create the modules.dep when it is empty, we need to call depmod
with '-a' instead of '-Ae' since the quick option uses the mtime to decide
whether or not it needs to update. This way we can guarantee that it will be
recreated completely and not only when adding new modules.

Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9292e9050fd95be4b556909e2775a45bce1ca79a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-kernel/modutils-initscripts/files/modutils.sh

index a78adf5729b3add5783af91b12ad0477cfea7ede..df37bfe7a1142965c9cfdab454d160270dda5b86 100755 (executable)
@@ -18,7 +18,7 @@ LOAD_MODULE=modprobe
 
 if [ ! -f /lib/modules/`uname -r`/modules.dep ]; then
        [ "$VERBOSE" != no ] && echo "Calculating module dependencies ..."
-       depmod -Ae
+       depmod -a
 fi
 
 loaded_modules=" "