Public bug reported:

Binary package hint: dkms

Description:    Ubuntu 8.10
Release:        8.10
Platform:       amd64

dkms:
  Installed: 2.0.20.4-0ubuntu2
  Candidate: 2.0.20.4-0ubuntu2
  Version table:
 *** 2.0.20.4-0ubuntu2 0
        500 http://nl.archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status


On an "ADD" event, dkms installs "MODULES_CONF" lines into /etc/modprobe.d/dkms
However, it does not remove these on an "REMOVE" event, because the dkms script 
lacks a reference to /etc/modprobe.d/dkms. 

The following snippets from /usr/sbin/dkms says it all:
--8<--
function moduleconfig_add ()
{
    # $1 = kernel version

    local temp_dir_name=`mktemp -d $tmp_location/dkms.XXXXXX`
    modconfig_files=""
    [ -e /etc/modprobe.d/dkms ] && modconfig_files="/etc/modprobe.d/dkms"
    [ -e /etc/modules.conf ] && modconfig_files="/etc/modules.conf"
    [ -e /etc/modprobe.conf ] && modconfig_files="$modconfig_files /etc/modprobe
.conf"
--8<--

--8<--
function moduleconfig_remove ()
{
    # $1 = kernel version

    local temp_dir_name=`mktemp -d $tmp_location/dkms.XXXXXX`
    modconfig_files=""
    [ -e /etc/modules.conf ] && modconfig_files="/etc/modules.conf"
    [ -e /etc/modprobe.conf ] && modconfig_files="$modconfig_files 
/etc/modprobe.conf"
--8<--

As you can see, the moduleconfig_remove function doesn't do anything
with /etc/modprobe.d/dkms at all.


By the way, if /etc/modules.conf exists, dkms is also completely forgotten 
about. I guess that for both functions, the following should be the best 
replacement code:

    [ -e /etc/modprobe.d/dkms ] && modconfig_files="/etc/modprobe.d/dkms"
    [ -e /etc/modules.conf ] && modconfig_files="$modconfig_files 
/etc/modules.conf"
    [ -e /etc/modprobe.conf ] && modconfig_files="$modconfig_files 
/etc/modprobe.conf"

** Affects: dkms (Ubuntu)
     Importance: Undecided
         Status: New

-- 
dkms does not remove module config lines it adds
https://bugs.launchpad.net/bugs/317238
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to