Thorsten

At 22:21 01.11.2004 -0800, Thorsten von Eicken wrote:
>I'd like to have multiple systems on my WRAP board running Bering uClibc and I must 
>be overlooking the obvious. I have a large CF (256MB) and would like to have 2 
>complete system images so I can experiment with one and keep the other one as 
>"fail-safe" backup.
>
>First I tried to create multiple partitions to have one partition per system, but 
>syslinux doesn't seem to like partitions and will only boot from a whole-disk FAT 
>filesystem. Then I tried to stick all the .lrp into two subdirectories (one per 
>system) and with the use of PKGPATH in leaf.cfg that seems to work for the sake of 
>booting. But if I make changes to anything and use lrcfg to back LRPs up to the card 
>it wants to save them into the root directory of the disk. Where do I get the 
>boot-time value of PKGPATH from so I can modify lrcfg to save to the correct 
>directory? 

/proc/cmdline

>Or am I missing an obvious alternative?

OK you have multiple entries in the boot loader, so you should be able to select the 
system to boot.

In my case, I have multiple instances of the firewall on a CF. I save them to a tar 
file on the second partition using a script I called `pickle`. Another script 
`pretend` overwrites the current configuration, then a reboot will load the actual 
configuration. Thus I don't need to be at the console to select a particular firewall 
image.

basically the proceure is as follows.

1) set up your firewall instance
2) save it using lrcfg
3) make a copy using `pickle`
4) set up another firewall instance, /etc/hostname is used to distinguish them
5) save it using lrcfg
6) make one more copy on the 2nd partition using pickle

now you can select any instance using `pretend` and a reboot will boot it.

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:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&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