From 24126b40b20a4da3c9ad4ae7348bd439781d0769 Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Fri, 30 Sep 2016 16:06:05 +0200 Subject: Split mirroring into own script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1280b5e06ab9ab1fec015b51836d07da85c9f61f Signed-off-by: Jan-Simon Möller --- packer/provision/agl_mirror.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packer/provision/agl_mirror.sh (limited to 'packer/provision/agl_mirror.sh') diff --git a/packer/provision/agl_mirror.sh b/packer/provision/agl_mirror.sh new file mode 100644 index 00000000..e2a6b8c1 --- /dev/null +++ b/packer/provision/agl_mirror.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Preclone the gerrit repos for speed (use with --reference=/opt/AGL/preclone) +mkdir -p /opt/AGL/preclone +cd /opt/AGL/preclone +repo init -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo +repo sync +cd + +#mirror sstate-cache into /opt/AGL/sstate-mirror +mkdir -p /opt/AGL/sstate-mirror +cd /opt/AGL/sstate-mirror +wget --mirror -np -nH --convert-links "https://download-new.automotivelinux.org/sstate-mirror/" -A siginfo -A tgz --cut-dirs=1 +ls +ls * +cd + -- cgit 1.2.3-korg