Skip to content
Commit 532fe9fb authored by Paul Cercueil's avatar Paul Cercueil Committed by Yann E. MORIN
Browse files

linux: run depmod only if modules directory exists



If the modules directory that corresponds to the version of the kernel
being built has been deleted, don't try to run depmod, which will
obviously fail.

This can happen for instance when the modules are stripped from the main
root filesystem, and placed into a separate filesystem image, so that
the root filesystem and the kernel can be updated separately.

Signed-off-by: default avatarPaul Cercueil <paul@crapouillou.net>
Signed-off-by: default avatarYann E. MORIN <yann.morin.1998@free.fr>
parent b9026e83
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment