Charles Steinkuehler wrote:

I finally have a working update to the /linuxrc script for bering.

I was playing with the lrcfg* files at the end of February. Part of the exercise was to understand how the LEAF backup and configuration menu system works. By the time I finished I had a cross-platform package install and menu configuration system working. I still had to intercept the backup portion of the scripts to make it work completely.


I had three remaining tasks. One of them was diving into linuxrc. I thought I read that bzip2 was more efficient at compressing files than gzip. So I looked at implementing that compression scheme. A new package ending of .tbz or .lef would be required so that the scripts and users could tell the two apart and act accordingly. lrpkg.sh has some notes about bzip2. Where I was hampered was in how to pull this off in linuxrc. For example, I don't know if you can have a bzip2 ramdisk. If not root.lrp, then the script could support packages that used bzip2. I thought I saw that busybox supported bzip2 but to what extent I do not know.

The other issue for linuxrc was a scp backup choice. I am happy with scping my packages to my Linux PC. There I would create a new ISO with the full packages. I use CD-R/W disks for this purpose. It's a drag to sneaker net the floppy. So I modified the lrcfg menuing system. If sshd is sensed, then an entry for a scp backup target is placed in the "Set Backup Destination" menu. linuxrc would have to read scp in the device target and know to use the boot device or assume cdrom.

Since I have most of the lrcfg files modified are these ideas implementable in the linuxrc file that you are working on?

The files are in http://leaf.sourceforge.net/devel/dr_kludge/ for now. I was still debating how I wanted to put them in CVS but I thought I'd pipe up at this point to see if they were of interest in the linuxrc discussions. The 00readme.txt file is attached below.

Greg


Ident: 00readme.txt Greg Morgan 3/14/2004.



This set of files was extracted from a DCD 1.02 CD. The modified files propose several new features.


One a developer or perhaps a user could perform cross- platform configuration. Variables in lrcfg.spec control where the the backup menu is running from. Please see this file to configure the lrcfg system. Lots of comments should help. lrpkg.sh was used to install root.lrp but the rest of the sytem is not ready to try backing up root.lrp or some other package.

The other is a new package extension of either .tbz or .lef.
The question is can bzip2 be introduced in such a way that
both existing .lrp formats and bzip2 compression formats be
supported.  Can a ramdisk be bzip2 or does the kernel presume
gzip?

Finally, a new backup target has been introduced. If sshd is
detected, an scp backup target is created. This allows a
user with a cd image of their ISO on a Linux file system to
more easily create a new CD-R/W. The scp target allows them
to leave the newly configured package in /tmp/scp.  The user
would then go to the full Linux PC and scp the files from
the /tmp/scp directory into the ISO directory.  Both
mkisofs and cdrecord commands would be issued or shell
scripted to created a new CD-R or CD-R/W.

To use this on a Linux platform perform these steps.

1.) The scripts had to presume some hardcoded place.
    The choice was ~/lrcfg
    mkdir ~/lrcfg
    # Copy all the scripts into this directory.

2.) The scripts make an additional presumption that all of the
    other lrcfg scripts are in the current directory.  You will
    need a supporting directory structure like this

    mkdir lrcfg
    mkdir lrcfg/tmp
    mkdir lrcfg/var
    mkdir lrcfg/var/lib
    mkdir lrcfg/var/lib/lrpkg
    mkdir lrcfg/var/lib/lrpkg/mnt
    mkdir lrcfg/proc
    mkdir lrcfg/etc
    mkdir lrcfg/mnt

3.) You will also need to perform these steps to have some
    supporting data.  Replace firewallname with the real name
    of your firewall.  You will also have to have the sshd.lrp
    package installed on your firewall and have generated your
    keys with sshkey.lrp.

    cd lrcfg
    scp [EMAIL PROTECTED]:/var/lib/lrpkg/* ./var/lib/lrpkg
    scp [EMAIL PROTECTED]:/etc/* ./etc
    scp [EMAIL PROTECTED]:/proc/* ./proc

    Note the scp of proc was an idea that did not work. Presently
    the scripts presume a DCD cmdline file.  You will have to
    create this from the /proc filesystem on your live LEAF box.

3.) To play with the system use these commands to run the menu.

    cd ~/lrcfg
    # Edit the lrcfg.spec to your tastes.  Make sure LRROOT and
    # LREDIT are set correctly.
    ./lrcfg

4.) To install a package, place the desired package in your
    ~/lrcfg/mnt directory.  Then use lrpkg.sh to install it
    as you would normally.  Use ./lrpkg.sh to see the options.

    cp root.lrp ~/lrcfg/mnt
    cd ~/lrcfg/mnt
    ../lrpkg.sh -i root.lrp

File Name           Description and Status
------------------  --------------------------------------------
00readme.txt        This file.
backupdisk          The backup a disk script. The script has
                    cross-platform support but the backup is not
                    working on a Linux PC yet.
linuxrc             This file does not exist yet.  However, the
                    linuxrc file would need to be modified for
                    bzip2 and scp support. The .lrp presumption
                    would have to be removed.
lrcfg               The startup menu file.  Working.
lrcfg.back          The backup menu. scp is working but bzip2 was
                    just introduced. z option toggles the
                    compression for a package.
lrcfg.back.script
lrcfg.conf          This is the package configuration menu maker.
                    It works.
lrcfg.conf.packs    Menu item maker for package configuration
                    files.  It works.
lrcfg.spec          The configuration file. It is in final form.
lrpkg.sh            The package install file.  Still needs bzip2
                    support.  However, the script does install
                    a package from a simulated mnt directory
                    just like on a LEAF box.  The file does
                    not presume .lrp but still does not support
                    a .tbz or .lef extension for bzip2.



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

_______________________________________________
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to