Public bug reported:

Binary package hint: module-init-tools

Ubuntu 8.10

 apt-cache policy module-init-tools
module-init-tools:
  Installed: 3.3-pre11-4ubuntu16
  Candidate: 3.3-pre11-4ubuntu16
  Version table:
 *** 3.3-pre11-4ubuntu16 0
        500 http://us.archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status

I copied a driver out of /usr/src/linux-source-2.6.27/, created a trivial 
makefile for it:
    obj-m += modulename.o
then built and installed it:
    make      V=1 -C /lib/modules/`uname -r`/build M=`pwd`
    sudo make V=1 -C /lib/modules/`uname -r`/build M=`pwd` modules_install
    sudo depmod

The module gets installed under /lib/modules/*/extra/.
On some systems, depmod sees the new extra/ driver, but on others, it sees
the old driver under kernel/.  The difference is filesystem order within the 
directory,
as exposed by `ls -1f`.  The fix is to configure depmod to always search extra/
_before_ kernel/.  Patch attached.

** Affects: module-init-tools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: depmod driver

-- 
/lib/modules/*/* dirs searched in non-determinate order
https://bugs.launchpad.net/bugs/317724
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