Package: kmod
Version: 8-2
Severity: normal

Hello,
While setting up a new VPS with Wheezy under a module-less kernel
(everything compiled-in) I've noticed that kmod's modprobe silently
returns 1 with no error message printed, no matter if you tell it
to load or unload a module.

Of course, the expected behavior is to return a module not found
error, like Squeeze's "old" modprobe did.

After a bit more testing using a more "standard" Debian install
(barebones system from current netinst with Debian standard kernel
3.2.0-3-686-pae) I've found out that this behavior is caused by lack
of /lib/modules/$(uname -r)/modules.alias.bin .

If you rename this file on an out-of-the-box Wheezy system,
modprobe will just return 1 without printing any warning message.

This of course breaks scripts sniffing modprobe's output.
(see Bug#684424 for example, which was my original problem.)

Script started on Tue 14 Aug 2012 03:41:39 PM CEST
root@debtestvm:/lib/modules/3.2.0-3-686-pae# modprobe -V
kmod version 8
root@debtestvm:/lib/modules/3.2.0-3-686-pae# modprobe nonexistent
FATAL: Module nonexistent not found.
root@debtestvm:/lib/modules/3.2.0-3-686-pae# modprobe -r nonexistent
FATAL: Module nonexistent not found.
root@debtestvm:/lib/modules/3.2.0-3-686-pae# mv modules.alias.bin 
modules.alias.bin.q
root@debtestvm:/lib/modules/3.2.0-3-686-pae# modprobe nonexistent
root@debtestvm:/lib/modules/3.2.0-3-686-pae# modprobe -r nonexistent
root@debtestvm:/lib/modules/3.2.0-3-686-pae# mv modules.alias.bin.q 
modules.alias.bin
root@debtestvm:/lib/modules/3.2.0-3-686-pae# modprobe nonexistent
FATAL: Module nonexistent not found.
root@debtestvm:/lib/modules/3.2.0-3-686-pae# modprobe -r nonexistent
FATAL: Module nonexistent not found.
root@debtestvm:/lib/modules/3.2.0-3-686-pae# exit

Script done on Tue 14 Aug 2012 03:42:45 PM CEST

Regards,
-- Wojciech

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.4.2-linode44 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages kmod depends on:
ii  libc6     2.13-33
ii  libkmod2  8-2
ii  lsb-base  4.1+Debian7

kmod recommends no packages.

kmod suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to