I don't know how popular this is going to be, but I'll toss it out anyway.
For 99% of leaf users, storage is no longer ultra critical. This idea
is not meant to eliminate the current way of doing things (for those
folks who really are tight on secondary storage, things stay the same),
but I'd like to make a modest proposal.
If a file on the boot media called modules.tgz (or
Bering-uClibC-modules-2.4.33.tar.gz for the ISO image) is present,
extract the required modules from that file in realtime, on boot. That
way we're not saving & storing custom moddb.lrps if all the modules that
would normally be in that file are already in the default distribution.
It's fairly trivial, I wrote some shell code in realtime to do it
because I needed to populate /lib/modules for my box. I like this idea
better (or as an alternate to the web based stuff Arne did) because I
know the source of my modules and keep them in exact sync with the kernel.
The code I kinda cobbled together in realtime did something like this.
This is just for an example, it is not productized or tested...
# generate a list of module names
modules=`sed -e 's/#.*//' -e 's/[^<tab> ].*//' -e '/^[<tab> ]*$/d'
/etc/modules`
mkdir /tmp/mods.$$
cd /tmp/mods.$$
zcat /mnt/Bering-uClibc-2.4.33.tar.gz | tar xf -
for file in $modules ; do
fn=`find /tmp/mods.$$ -name ${file}.o`
if [ ! -f /lib/modules/`basename $fn` ] ; then
echo -n "Extracting $fn"
cp $fn /lib/modules
echo "."
fi
done
cd /tmp
rm -rf /tmp/mods.$$
Obviously, it should be done with tar -X so we don't fill up /tmp with a
bunch of memory resident crap that is just going away, but that's tbd
only if this sounds interesting to the B-U community.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
leaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-devel