Bug#330455: linux-image-2.6.12-1-686 loads every ide pci
> the title says it all...
-> linux-image-2.6.12-1-686 loads every ide pci module at boot time
This is a know problem since around 2.6.10. The problem is
that due to some broken locking semantics inside the kernel,
it is not safe to unload the ide modules, and more to the point,
the kernel doesn't allow them to be resolved.
This should be eventually resolved by reqorking the kernel's locks,
but that may be a while off, and is definately work for upstream.
It may also be resolved by replacing mkinitrd with something
that doesn't load all modules. work on this is in progress.
--
Horms
========
Using www.kernel.org linux-2.6.13 source and a kernel+modules was built with
# make-kpkg
There were no [permanent] marked modules upon the 2.6.13 bootup and lsmod.
The scriplet below was written to automate module unloading.
Of course it fails to remove the [permanent] marked modules under a 2.6.12-1-686 boot
MarvS
#!/bin/sh
# /usr/local/bin/unloading
MODULES=`cat /proc/modules | cut -d' ' -f1 | grep -v mouse`
echo "Beginning: $MODULESall"
for MODULE in $MODULES
do
if grep $MODULE /proc/modules >/dev/null
then
modprobe -r $MODULE 2>&1 | grep -v FATAL
MODULES=`cat /proc/modules | cut -d' ' -f1 | grep -v mouse`
# which regenerates a shortened list
fi
done
echo "Remaining: $MODULES"
echo
Reply to: