summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-10-17 15:23:18 +0200
committerHolger Levsen <holger@layer-acht.org>2015-10-17 15:23:18 +0200
commit7a65d0cd47f228452261ad2996a91ecd7cf94284 (patch)
tree1f48e87a8fa708a3918c3a6d1d49137158817ed9 /bin
parent0b0c828780f3a679b3d169a652fc1b2cb45c633b (diff)
downloadjenkins.debian.net-7a65d0cd47f228452261ad2996a91ecd7cf94284.tar.xz
reproducible arch: refactor, define mirror once
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_arch_schroot_setup.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/reproducible_arch_schroot_setup.sh b/bin/reproducible_arch_schroot_setup.sh
index 6633346e..4594667b 100755
--- a/bin/reproducible_arch_schroot_setup.sh
+++ b/bin/reproducible_arch_schroot_setup.sh
@@ -12,11 +12,12 @@ DEBUG=true
. /srv/jenkins/bin/common-functions.sh
common_init "$@"
-
+# define archlinux mirror to be used
+ARCH_MIRROR=http://mirror.one.com/archlinux/
bootstrap() {
# define URL for bootstrap.tgz
- BOOTSTRAP_BASE=http://mirror.one.com/archlinux/iso/
+ BOOTSTRAP_BASE=$ARCH_MIRROR/iso/
echo "$(date -u) - downloading Archlinux latest/sha1sums.txt"
BOOTSTRAP_DATE=$(curl $BOOTSTRAP_BASE/latest/sha1sums.txt 2>/dev/null| grep x86_64.tar.gz| cut -d " " -f3|cut -d "-" -f3|egrep '[0-9.]{9}')
if [ -z $BOOTSTRAP_DATE ] ; then
@@ -85,7 +86,7 @@ echo ". /etc/profile.d/proxy.sh" | tee -a $SCHROOT_BASE/$TARGET/root/.bashrc
# configure pacman
$ROOTCMD pacman-key --init
$ROOTCMD pacman-key --populate archlinux
-echo 'Server = http://mirror.one.com/archlinux/$repo/os/$arch' | tee -a $SCHROOT_BASE/$TARGET/etc/pacman.d/mirrorlist
+echo "Server = $ARCH_MIRROR/\$repo/os/\$arch" | tee -a $SCHROOT_BASE/$TARGET/etc/pacman.d/mirrorlist
$ROOTCMD pacman -Syu --noconfirm
$ROOTCMD pacman -S --noconfirm base-devel devtools abs
# configure abs