problems with MODULES_CONF_ALIAS_TYPE

Jean-Christophe Dubois jdubois at mc.com
Thu Feb 1 07:47:19 CST 2007


Hi,

I am using DKMS for some drivers we have on FC5 using dkms 2.0.13-1.fc5.

I tried to use MODULES_CONF_ALIAS_TYPE to have dkms updating the mprobe.conf 
file automatically. However I got a problem with this. DKMS seems to be 
unable to handle an alias with a '0' number. The smallest I can get is an 
alias with a '1' number.

so if in the dkms.conf I put something like:

BUILT_MODULE_NAME[0]="my_module"
DEST_MODULE_LOCATION[0]="/extra"
MODULES_CONF_ALIAS_TYPE[0]="my_device"

I get (in modprobe.conf):

alias my_device1 my_module

This is due to the fact that DKMS seems to expect the "device" type to be 
already present in the modprobe.conf and it doesn't make a difference between 
my_device0 being there and no my_device at all. So if there is no my_device 
in the file it assumes there is a my_device0.

this seems to come from this line:

alias_number=$(( `grep "alias 
${modules_conf_alias_type[$index]}"$moduleconfig | awk '{print $2}' | 
sed "s/${modules_conf_alias_type[$index]}//" | sort -n | tail -n 1` + 1 ))

Is this a known issue? Am I missing something or missusing DKMS?

Thanks

JC




More information about the DKMS-devel mailing list