From 9292e9050fd95be4b556909e2775a45bce1ca79a Mon Sep 17 00:00:00 2001 From: Diego Sueiro Date: Tue, 8 Dec 2020 11:44:59 +0000 Subject: modutils-initscripts: Use depmod -a when modules.dep is empty 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 Signed-off-by: Richard Purdie --- meta/recipes-kernel/modutils-initscripts/files/modutils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/recipes-kernel') diff --git a/meta/recipes-kernel/modutils-initscripts/files/modutils.sh b/meta/recipes-kernel/modutils-initscripts/files/modutils.sh index 3274c25a69..28fe6f92d7 100755 --- a/meta/recipes-kernel/modutils-initscripts/files/modutils.sh +++ b/meta/recipes-kernel/modutils-initscripts/files/modutils.sh @@ -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 -- cgit 1.2.3-korg