Hi all,

Stopping the voyage should copy /rw $VOYAGE_SYSTEM_SYNCDIRS to /ro as
is, without old content.  Any file removed or renamed en /rw synced dirs
should be removed or renamed en /ro. Current voyage-utils overwrite ro:

========================================================================
        'stop')
                if [ -f /etc/voyage.conf ] ; then
                . /etc/voyage.conf
                /usr/local/sbin/remountrw
                for DIR in $VOYAGE_SYSTEM_SYNCDIRS
                do
                echo -n "Synchronizing $DIR ... "
                                cp -Rp $DIR/* /ro$DIR/
                                echo "Done."
                        done
                        /usr/local/sbin/remountro
                fi
                ;;
========================================================================

I think it should be changed to something like:

========================================================================

   'stop')
        if [ -f /etc/voyage.conf ] ; then
            . /etc/voyage.conf
            /usr/local/sbin/remountrw
            for DIR in $VOYAGE_SYSTEM_SYNCDIRS
            do
                echo -n "Synchronizing $DIR ... "
                rm -rf  /ro$DIR
                mkdir -p  /ro$DIR
                (cd $DIR; tar cf - .) | (cd /ro$DIR/; tar xpf -)
                echo "Done."
            done
            /usr/local/sbin/remountro
        fi
        ;;
    *)

========================================================================

Regards


-- 
Joaquin Seoane Pascual     tel: +34 91 3367349
Dpt. Ing. Telematica       fax:   +34 91 3367333 
E.T.S.I. Telecomunicacion  tlx:   47430 ETSIT E
Ciudad Universitaria       email: jsp at dit.upm.es  
E-28040  MADRID            www:   http://www.dit.upm.es/~joaquin
SPAIN                     


_______________________________________________
Voyage-linux mailing list
[email protected]
http://list.voyage.hk/mailman/listinfo/voyage-linux

Reply via email to