Created attachment 274499 [details]
A simple fix
Hardware Environment: any
Software Environment: any
We have a report that kernel modules are not automatically loaded.
We found the root cause is modules.dep was not generated since
the build host doesn't have depmod.
I was surprised because I thought missing depmod should be treated as an error.
However, checking scripts/depmod.sh, it's not.
Missing depmod is silently ignored:
if ! test -r System.map -a -x "$DEPMOD"; then
I don't think that's a good idea.
I tried to contact Michal Marek, the author of scripts/depmod.sh.
But the email was bounced. Maybe he is not in charge of it now.
Anyway, I decide to file a bug and propose a simple fix.
Please send your patch to firstname.lastname@example.org mailing list.
Also please add
Signed-off-by: your name <email address>
to the patch. Otherwise we cannot accept it.