you may want to have a look at the rload stuff if did lately. It uses the exixting lrp.conf file for the purpose of loading packages over the net. This runs long after linuxrc has finished and does not require hacks in the existing system.
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/leaf/devel/etitl/bering/packages/
cheers
Erich
At 15:34 20.07.2003, S Mohan wrote:
I've had many reactions to this. I tried what I had in mind and was successful. I wanted to maintain backward compatibility too. Thus the file to load packages can be edited using lrcfg and we can have multiple lines in the file to declare the packages.
The scheme I implemented was as follows:
1. Create a new file /boot/etc/pkglist. 2. Create an entry in /var/lib/lrpkg/root.sys.conf at the end to allow this file to be edited. 3. Inserted a few lines as under just after linuxrc finishes checking /proc/cmdline and lrpkg.cfg and before package loading (line 263 in original linuxrc). Idea was to append names from the file to ROOTMAP and then allow loading to happen as usual. ------------------ begin entry ------------------------------------------------ # add-on to read from /boot/etc/pkglist and append to ROOTMAP variable for # loading additional modules. # Added by Mohan Sundaram
if [ -f /boot/etc/pkglist ]; then for i in `cat /boot/etc/pkglist` do ROOTMAP="$ROOTMAP,$i" done fi ------------------ end entry ---------------------------------------------------
I removed pump,shorwall,dnscache,weblet from syslinux.cfg and tested this out to load those four in addition to those declared in syslinux.cfg. It works well with combinations below:
--------- /boot/etc/pkglist ------------- pump,shorwall,dnscache,weblet ----------------------------------------- or --------- /boot/etc/pkglist ------------- pump shorwall dnscache weblet ----------------------------------------- or --------- /boot/etc/pkglist ------------- pump,shorwall dnscache,weblet ----------------------------------------- or --------- /boot/etc/pkglist ------------- pump shorwall dnscache weblet ----------------------------------------- or --------- /boot/etc/pkglist ------------- pump shorwall dnscache weblet -----------------------------------------
In cases where we have a space after the comma before the package name, the package loading routine tries to load ".lrp" and thus shows (nf!) message. What we need to do is replace ", " with ",". I've not played around with sed yet to tackle this. When I do, I'll post that too.
Regards Mohan
------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel
THINK P�ntenstrasse 39 8143 Stallikon mailto:[EMAIL PROTECTED] PGP Fingerprint: BC9A 25BC 3954 3BC8 C024 8D8A B7D4 FF9D 05B8 0A16
------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel
