From 8e2c49cf50f9a79d3e6443c5322e145ecd428245 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 17 Oct 2015 03:16:01 +0200 Subject: reproducible arch: refactor and use newer bootstrap.tgz --- bin/reproducible_arch_schroot_setup.sh | 8 +++++--- 1 file 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__ -- cgit v1.2.3-70-g09d2