summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-05-24 17:58:29 -0300
committerRenato Botelho <renato@netgate.com>2016-05-24 17:58:29 -0300
commit71768e1f0a59ad84da2c0229556837c6887759b4 (patch)
treee1031cc47ab966a7c83bda678448a36df1909edb
parent252efda8e59f0ff0d3794c3545969b3c3e24664e (diff)
downloadpfsense-71768e1f0a59ad84da2c0229556837c6887759b4.zip
pfsense-71768e1f0a59ad84da2c0229556837c6887759b4.tar.gz
Add -H to rsync calls to preserve hardlinks
-rw-r--r--tools/builder_common.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh
index 6a019e7..1e8c8c7 100644
--- a/tools/builder_common.sh
+++ b/tools/builder_common.sh
@@ -1927,7 +1927,7 @@ pkg_repo_rsync() {
"mkdir -p ${PKG_RSYNC_DESTDIR}"
echo -n ">>> Sending updated repository to ${PKG_RSYNC_HOSTNAME}... " | tee -a ${_logfile}
- if script -aq ${_logfile} rsync -ave "ssh -p ${PKG_RSYNC_SSH_PORT}" \
+ if script -aq ${_logfile} rsync -Have "ssh -p ${PKG_RSYNC_SSH_PORT}" \
--timeout=60 --delete-delay ${_repo_path} \
${PKG_RSYNC_USERNAME}@${PKG_RSYNC_HOSTNAME}:${PKG_RSYNC_DESTDIR} >/dev/null 2>&1
then
@@ -1943,7 +1943,7 @@ pkg_repo_rsync() {
fi
if [ -n "${_IS_RELEASE}" -o "${_repo_path_param}" = "${CORE_PKG_PATH}" ]; then
- local _cmd="rsync -ave \"ssh -p ${PKG_FINAL_RSYNC_SSH_PORT}\" \
+ local _cmd="rsync -Have \"ssh -p ${PKG_FINAL_RSYNC_SSH_PORT}\" \
--timeout=60 --delete-delay ${PKG_RSYNC_DESTDIR}/./${_repo_base%%-core}* \
${PKG_FINAL_RSYNC_USERNAME}@${PKG_FINAL_RSYNC_HOSTNAME}:${PKG_FINAL_RSYNC_DESTDIR}"
OpenPOWER on IntegriCloud