22 lines · 954 B · Text
RawDownload
Debugging Modules after 2.6.3----------------------------- In almost all distributions, the kernel asks for modules which don'texist, such as "net-pf-10" or whatever.  Changing "modprobe -q" to"succeed" in this case is hacky and breaks some setups, and also wewant to know if it failed for the fallback code for old aliases infs/char_dev.c, for example. In the past a debugging message which would fill people's logs wasemitted.  This debugging message has been removed.  The correct wayof debugging module problems is something like this: echo '#! /bin/sh' > /tmp/modprobeecho 'echo "$@" >> /tmp/modprobe.log' >> /tmp/modprobeecho 'exec /sbin/modprobe "$@"' >> /tmp/modprobechmod a+x /tmp/modprobeecho /tmp/modprobe > /proc/sys/kernel/modprobe Note that the above applies only when the *kernel* is requestingthat the module be loaded -- it won't have any effect if that moduleis being loaded explicitly using "modprobe" from userspace.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t