summaryrefslogtreecommitdiffstats
path: root/fuel/build/f_isoroot
diff options
context:
space:
mode:
authorMichal Skalski <mskalski@mirantis.com>2015-09-26 16:10:17 +0200
committerMichal Skalski <mskalski@mirantis.com>2015-09-26 16:35:53 +0200
commitacbb3b26c855ff35c8774eff8cd696b0198f9ac8 (patch)
tree57a03377333121e2bff6793efa46f1c61705cd60 /fuel/build/f_isoroot
parentf2752258649dc714a3c0adc8fa6aa4cfab405a45 (diff)
Change mirror rsync check
Checking if rsync is enabled on remote host is not enough. Change-Id: I478c32a407af7ea01f90c45adcafdf99b6ba1782 Signed-off-by: Michal Skalski <mskalski@mirantis.com>
Diffstat (limited to 'fuel/build/f_isoroot')
-rw-r--r--fuel/build/f_isoroot/f_repobuild/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuel/build/f_isoroot/f_repobuild/Makefile b/fuel/build/f_isoroot/f_repobuild/Makefile
index 8722cbb..6bfbd35 100644
--- a/fuel/build/f_isoroot/f_repobuild/Makefile
+++ b/fuel/build/f_isoroot/f_repobuild/Makefile
@@ -17,7 +17,7 @@ DOCKVERSION = 1.0
# https://bugs.launchpad.net/fuel/+bug/1459252
MIRROR_URLS := $(shell curl -s http://mirrors.ubuntu.com/mirrors.txt)
MIRROR_HOSTS := $(shell for url in ${MIRROR_URLS}; do echo $$url | cut -d'/' -f3; done)
-RSYNC_HOST := $(shell for host in ${MIRROR_HOSTS}; do echo > /dev/tcp/$${host}/873 && echo $$host && break; done)
+RSYNC_HOST := $(shell for host in ${MIRROR_HOSTS}; do rsync -4 --contimeout 5 --no-motd --list-only "$${host}::ubuntu/." &> /dev/null && echo $$host && break; done)
.PHONY: all
all: .nailgun