Linus TorvaldsLinux-2.6.12-rc21da177e21 years agoHistory
18 lines · 759 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