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

Reply via email to