|Summary:||Missing depmod is not treated as an error?|
|Product:||Tools||Reporter:||Chih-Wei Huang (cwhuang)|
|Attachments:||A simple fix|
Description Chih-Wei Huang 2018-03-02 03:26:10 UTC
Created attachment 274499 [details] A simple fix Distribution: any Hardware Environment: any Software Environment: any Problem Description: 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 exit 0 fi 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.