Hi;

An advantage of Bering-uClibc 4.0 over the 3.x versions is the autodetection 
and autoloading of modules, and therefor the support of much more appliances 
out-of-the box.

But that means also, that a lot of modules are installed without being of any 
use - this raises boot time and wastes memory (as you know, all files are hold 
in the RAM after Bering-uClibc has booted).

As a consequence, one of the first questions asked, has been how to get rid of 
unneeded modules.

For modules provided with moddb.lrp (and it's variations for different cpu's) 
it is as easy as to remove those from /lib/modules and to backup the modules 
from the lrcfg menu (-> "m) Backup modules").

Kernel modules provided with initrd are a different story,and it required to 
rebuild initrd on another machine - it wasn't possible on your Leaf box.

This changes with 4.1(-beta1) for those who boot from writable media like a CF 
or USB device.
It obviously is not possible to change initrd if you boot from a write-
protected device, esp. CD-ROM.

For Bering-uClibc 4.1 the busybox cpio applet has been added, which is needed 
to rebuild initrd on your LEAF box.

In short the steps are (given you have enough RAM):
- mount your boot device and copy initrd.lrp to /tmp
- untar initrd.lrp
- remove the modules you don't need to get you box booted (run lsmod to see 
what modules are loaded) 
- repackage initrd and copy it back to the mounted boot device.

Read more about the commands to accomplish that tasks in the wiki:

https://sourceforge.net/apps/mediawiki/leaf/index.php?title=Bering-
uClibc_4.x_-_User_Guide_-_Advanced_Topics_-_Modifying_initrd.lrp


hth kp
------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Reply via email to