mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 09:32:12 +02:00
modutils-initscripts: Bail out when no module is installed
Fix the following warning when boot with a core-image-minimal rootfs: depmod: can't change directory to 'lib/modules/5.10.25-yocto-standard': No such file or directory (From OE-Core rev: 1aa5d8231a7e4ee2f19afbe12aa49fc19c854062) Signed-off-by: Kevin Hao <kexin.hao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit c34650400182a1104a5fbe03e54f5cea69eb1900) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
3b0bc8961e
commit
f2c9dd561b
@@ -13,6 +13,7 @@
|
||||
|
||||
LOAD_MODULE=modprobe
|
||||
[ -f /proc/modules ] || exit 0
|
||||
[ -d /lib/modules/`uname -r` ] || exit 0
|
||||
|
||||
# Test if modules.dep exists and has a size greater than zero
|
||||
if [ ! -s /lib/modules/`uname -r`/modules.dep ]; then
|
||||
|
||||
Reference in New Issue
Block a user