On Thu, Dec 27, 2007 at 07:15:01PM -0200, Otavio Salvador wrote: > dann frazier <[EMAIL PROTECTED]> writes: > > Yeah. Options here would be: > > 1) big hammer - write a modprobe wrapper that cleans > > unused/unloadable modules after every load > > 2) smaller hammer - write a modprobe wrapper that remembers what was > > loaded before and, on failure, unloads all newly added, unused, > > unloadable modules > > 3) surgical hammer - whatever ends up loading acpihpi knows that, on > > failure, dock and pci_hotplug should be removed (if unused) > > > > fyi, the dependencies loaded, and left unused, eat 9476 (dock) and > > 28600 (pci_hotplug) bytes. > > imo, the best and more widly solution would be the 2. That shouldn't > be too hard and would allow us to reduce the memory footprint not only > on your user case but in general usage too.
Might be vearing off topic for this bug, but here's a wrapper I worked up (not yet tested in the d-i environment). -- dann frazier
modprobe-and-clean.sh
Description: Bourne shell script