depmod doesn't respect /etc/depmod.d/ubuntu.conf config

Bug #472982 reported by st_
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
module-init-tools (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: module-init-tools

I use a custom driver for CDC ETHER device and have a conflict with a standard cdc_ether driver.
I put my custom_cdc driver into "/lib/modules/`uname -r`/extra" and run depmod, which according to man depmod.conf should make my custom_cdc driver to load with high priority then standard cdc_ether driver. But it seems that depmod doesn't take into account /etc/depmod.d/ubuntu.conf config when building modules dependencies and modules.alias. So cdc_ether driver is loaded first when I plug my divice, but if my custom_cdc driver is located in extra it should be loaded first.

Here is alias of my driver and cdc_ether driver:

custom_cdc usb:v148Ep0900d*dc*dsc*dp*ic02isc06ip00*
cdc_ether usb:v*p*d*dc*dsc*dp*ic02isc06ip00*

And here is udev event which loads driver by alias:

MODALIAS=usb:v148Ep0900d0001dc02dsc00dp00ic02isc06ip00
MODALIAS=usb:v148Ep0900d0001dc02dsc00dp00ic0Aisc00ip00

So my custom_cdc driver has more concrete alias which include particular vendor/device id, but for some reason cdc_ether still loaded instead of my driver. This is because depmod build incorrect modules.alias where custom_cdc located after cdc_ether.

In debian it works correctly, because depmod produce modules.alias file with custom_cdc in the first line.

ProblemType: Bug
Architecture: i386
Date: Tue Nov 3 16:27:09 2009
DistroRelease: Ubuntu 9.10
Package: module-init-tools 3.10-3
ProcEnviron:
 LANGUAGE=
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: module-init-tools
Uname: Linux 2.6.31-14-generic i686
XsessionErrors: (polkit-gnome-authentication-agent-1:2639): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

Revision history for this message
st_ (saint-d-a) wrote :
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

From your bug report, it's impossible to tell why you think an "extra" directory is considered special - there's nothing special about it, and no mention in the man page

If you want "extra" to be special, you need to add it to the "search" line in /etc/depmod.d/ubuntu.conf

Changed in module-init-tools (Ubuntu):
status: New → Invalid
Revision history for this message
st_ (saint-d-a) wrote :

>If you want "extra" to be special, you need to add it to the "search" line in /etc/depmod.d/ubuntu.conf

I've tried this and it didn't help, that's why I've created the bug - because depmod doesn't respect "search" line in /etc/depmod.d/ubuntu.conf.

I've also tried to use DKMS to install my custom driver. DKMS puts drivers into "updates/dkm", which has highest priority in /etc/depmod.d/ubuntu.conf, but it also doesn't help - depmod still generates modules.alias with my custom driver at the end of the list regardless of alias of my driver.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.