Hi scott

At 05:57 05.05.2004 -0400, freeman wrote:
...
>      b) Adjust the backup script, /usr/sbin/lrcfg.back.script:
>            - Change
>               INCLUDE="/tmp/INCLUDE"
>              To
>               INCLUDE="/tmp/$HD_DIR/INCLUDE"
>
>            - Change
>               EXCLUDE=/tmp/EXCLUDE"
>              To
>               EXCLUDE="/tmp/$HD_DIR/EXCLUDE"
>
>            - Change
>               TMP_EXCLUDE="/tmp/TMP_EXCLUDE"
>              To
>               TMP_EXCLUDE="/tmp/$HD_DIR/TMP_EXCLUDE"
>
>            - Change
>               cat /var/lib/lrpkg/*.list /var/lib/lrpkg/*.links >>$TMP_EXCLUDE
>              To
>               cat /var/lib/lrpkg/$HD_DIR/*.list /var/lib/lrpkg/$HD_DIR/*.links 
> >>$TMP_EXCLUDE
>
>            - Below
>               [ "$PACKAGE" = "root" ]         && cat  $TMP_EXCLUDE > $EXCLUDE
>              Add
>               [ "$PACKAGE" = "$HD_DIR/root" ] && cat  $TMP_EXCLUDE > $EXCLUDE

Why do you need to make temporary files dependent on HD_DIR?


>   That should be it. I agree, my use of $HD_DIR beneath /var/lib/lrpkg, etc, is 
> probably unnecessary but it's where I ended up.

see above.


>   A precautionary tale: Backup your .LRP packages elsewhere before trying this. If 
> something's amiss you may overwrite a valid .LRP package with an empty one. The way 
> I verify I'm setup properly is that the 'C'onfirm Writes=On, and when I backup a 
> .LRP I verify that the new package is about the same size as the old one.
>
>   How to make it all easy to change between different configs: The only thing 
> different, from a boot-up standpoint, is that I have various lrpkg.XXX files in my 
> root folder, and copy them over the lrpkg.cfg file to tell LEAF where my current 
> setup is. After a new setup boots up I have to change the HD_DIR var within 
> /etc/profile, save the file (but don't backup yet), re-login (so the updated HD_DIR 
> is now live) ... then I can go in and backup my LEAF packages.

Couldn't you pass a parameter to linuxrc through the bootloader, possibly using GRUB?

cheers
Erich

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: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to