summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-10-16 16:00:49 +0200
committerHolger Levsen <holger@layer-acht.org>2015-10-16 16:00:49 +0200
commit4de8761e4b65a04e777f87ea62557d7cfd7b6226 (patch)
treea5f0a15a967c28416ed6a635597560c76c9650f1 /bin
parent54489c4acd2a31f02ae638fdf5a2aca589dd2a96 (diff)
downloadjenkins.debian.net-4de8761e4b65a04e777f87ea62557d7cfd7b6226.tar.xz
reproducible: refactor
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_arch_schroot_setup.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/reproducible_arch_schroot_setup.sh b/bin/reproducible_arch_schroot_setup.sh
index a6285e32..50ce3a8c 100755
--- a/bin/reproducible_arch_schroot_setup.sh
+++ b/bin/reproducible_arch_schroot_setup.sh
@@ -12,9 +12,13 @@ DEBUG=true
. /srv/jenkins/bin/common-functions.sh
common_init "$@"
+# define URL for bootstrap.tgz
+BOOTSTRAP_BASE=https://mirrors.kernel.org/archlinux/iso/
+BOOTSTRAP_TAR_GZ=2015.08.01/archlinux-bootstrap-2015.08.01-x86_64.tar.gz
+
bootstrap() {
echo "$(date -u) - downloading Archlinux bootstrap.tar.gz."
- curl -O https://mirrors.kernel.org/archlinux/iso/2015.08.01/archlinux-bootstrap-2015.08.01-x86_64.tar.gz
+ curl -O $BOOTSTRAP_BASE/$BOOTSTRAP_TAR_GZ
tar xzf archlinux-bootstrap-2015.08.01-x86_64.tar.gz
mv root.x86_64/* $SCHROOT_TARGET || true # proc and sys have 0555 perms, thus mv will fail... also see below
rm archlinux-bootstrap-2015.08.01-x86_64.tar.gz root.x86_64 -rf