summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-10-17 03:16:01 +0200
committerHolger Levsen <holger@layer-acht.org>2015-10-17 03:16:01 +0200
commit8e2c49cf50f9a79d3e6443c5322e145ecd428245 (patch)
tree7d7db42a197d8868f88229566ac88770a741fbcb /bin
parent6720a0d6f2b4811062af6c92d48a9199639eb96b (diff)
downloadjenkins.debian.net-8e2c49cf50f9a79d3e6443c5322e145ecd428245.tar.xz
reproducible arch: refactor and use newer bootstrap.tgz
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_arch_schroot_setup.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/reproducible_arch_schroot_setup.sh b/bin/reproducible_arch_schroot_setup.sh
index 279720fc..87fb4dcf 100755
--- a/bin/reproducible_arch_schroot_setup.sh
+++ b/bin/reproducible_arch_schroot_setup.sh
@@ -14,14 +14,16 @@ common_init "$@"
# define URL for bootstrap.tgz
BOOTSTRAP_BASE=http://mirror.one.com/archlinux/iso/
-BOOTSTRAP_TAR_GZ=2015.08.01/archlinux-bootstrap-2015.08.01-x86_64.tar.gz
+BOOTSTRAP_DATE=2015.10.01
+BOOTSTRAP_TAR_GZ=$BOOTSTRAP_DATE/archlinux-bootstrap-$BOOTSTRAP_DATE-x86_64.tar.gz
+
bootstrap() {
echo "$(date -u) - downloading Archlinux bootstrap.tar.gz."
curl -O $BOOTSTRAP_BASE/$BOOTSTRAP_TAR_GZ
- tar xzf archlinux-bootstrap-2015.08.01-x86_64.tar.gz
+ tar xzf archlinux-bootstrap-$BOOTSTRAP_DATE-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
+ rm archlinux-bootstrap-$BOOTSTRAP_DATE-x86_64.tar.gz root.x86_64 -rf
# write the schroot config
echo "$(date -u ) - writing schroot configuration for $TARGET."
sudo tee /etc/schroot/chroot.d/jenkins-"$TARGET" <<-__END__