]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Dec 2020 00:06:20 +0000 (00:06 +0000)
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>
meta/recipes-kernel/modutils-initscripts/files/modutils.sh

index 3274c25a69013fda2667e1e6a9757d3e27f8da35..28fe6f92d77f20086f1d974dcddd4bb48e7f8653 100755 (executable)
@@ -17,7 +17,7 @@ LOAD_MODULE=modprobe
 # Test if modules.dep exists and has a size greater than zero
 if [ ! -s /lib/modules/`uname -r`/modules.dep ]; then
        [ "$VERBOSE" != no ] && echo "Calculating module dependencies ..."
-       depmod -Ae
+       depmod -a
 fi
 
 [ -f /etc/modules ] || [ -d /etc/modules-load.d ] || exit 0