diff options
author | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2016-09-29 00:04:40 +0200 |
---|---|---|
committer | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2016-09-29 00:04:40 +0200 |
commit | 97b7155b764af803af113a35e5f709d16ed9841a (patch) | |
tree | b2c9df54fb00ec7e6cf0117f44d2e5af8b2522f4 /packer/provision | |
parent | 2793b9822f27d166d6a01892364dddba77893c5d (diff) |
Preclone a sstate-cache folder
Therefore do the host hack earlier.
Change-Id: Ia0b2f67c42fd0f864746c3b1af2af2b7bbfa5c00
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'packer/provision')
-rw-r--r-- | packer/provision/agl_dependencies.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/packer/provision/agl_dependencies.sh b/packer/provision/agl_dependencies.sh index ca2a0181..d71c9e58 100644 --- a/packer/provision/agl_dependencies.sh +++ b/packer/provision/agl_dependencies.sh @@ -11,9 +11,27 @@ DEBIAN_FRONTEND=noninteractive apt-get update && \ echo "dash dash/sh boolean false" | debconf-set-selections DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash +cat <<EOFHOSTS >> /etc/hosts + +# workaround for download-new +199.19.213.77 download-new.automotivelinux.org +199.19.213.77 download.automotivelinux.org + +EOFHOSTS + + # 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 + |