how about this scenario:

1. tar cvf /tmp/etc.tar /etc
2. mount_mfs -s 20M swap /etc
3. tar xvf /tmp/etc.tar -C /

Jiri B [ji...@devio.us] wrote:
> scenario:
> =========
> 
> * mkdir /proto_etc
> * cp -Rp /etc/* /proto_etc
> * mkdir /pre_etc
> * cd /pre_etc
> * for i in boot.conf rc ttys passwd master.passwd pwd.db spwd.db login.conf 
> fstab rc.conf ; do
>       ln /etc/$i $i
>   done
> * mount_mfs -s 20M -P /proto-etc swap /etc
> * rsync -vhaz --delete \
>   --exclude boot.conf \
>   --exclude rc \
>   --exclude ttys \
>   --exclude passwd \
>   --exclude master.passwd \
>   --exclude pwd.db \
>   --exclude spwd.db \
>   --exclude login.conf \
>   --exclude fstab \
>   --exclude rc.conf /etc/ /proto_etc/
> * cd /etc
> * for i in boot.conf rc ttys passwd master.passwd pwd.db spwd.db login.conf 
> fstab rc.conf ; do
>       cat /etc/$i > /pre_etc/$i
>   done

-- 
There are only three sports: bullfighting, motor racing, and mountaineering; 
all the rest are merely games. - E. Hemingway

Reply via email to