mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00: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: c34650400182a1104a5fbe03e54f5cea69eb1900) Signed-off-by: Kevin Hao <kexin.hao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
25e1aabea6
commit
7d9a47e623
@@ -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