cloner: when syncing node specific data, use checksum instead of mtime
Jason D. Clinton [Wed, 22 Apr 2009 21:16:11 +0000 (16:16 -0500)]
etc/cloner/installer.sh

index 29d4495..373acac 100755 (executable)
@@ -117,7 +117,7 @@ then
        then
                header "Installing node specific data"
                msg -n "Syning node ${ANSI_BLUE}${_node}${ANSI_DONE} data from /mnt/media"
-               rsync -avz -I --numeric-ids --exclude /.valid \
+               rsync -avzc -I --numeric-ids --exclude /.valid \
                        /cloner/setup/node/ /cloner/mnt \
                        >> /tmp/stdout.log 2>> /tmp/stderr.log
 
@@ -132,7 +132,7 @@ then
                header "Installing node specific data"
                msg -n "Syning node ${ANSI_BLUE}${_node}${ANSI_DONE} data from ${_server}"
 
-               rsync -avz --numeric-ids --exclude /.valid \
+               rsync -avzc --numeric-ids --exclude /.valid \
                        ${_server}::${CLONER_IMAGE_PATH}/${_image}/nodes/${_node}/ \
                        /cloner/mnt >> /tmp/stdout.log 2>> /tmp/stderr.log
                if [ "$?" = "0" ]