summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-10-17 05:02:55 +0200
committerHolger Levsen <holger@layer-acht.org>2015-10-17 05:02:55 +0200
commit971663f61d3f0635042bfc17c2f0bd4576885bb1 (patch)
tree1a0b2aa91bb76fcf36d45c3f606af38e75fd25f0 /bin
parent8850a5c9d5ea21021f3c3a51e4fc1b4bc3c74c74 (diff)
downloadjenkins.debian.net-971663f61d3f0635042bfc17c2f0bd4576885bb1.tar.xz
reproducible arch: order is important, configure squid first
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_arch_schroot_setup.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/reproducible_arch_schroot_setup.sh b/bin/reproducible_arch_schroot_setup.sh
index 04a9fa23..be060241 100755
--- a/bin/reproducible_arch_schroot_setup.sh
+++ b/bin/reproducible_arch_schroot_setup.sh
@@ -59,18 +59,19 @@ trap - INT TERM EXIT
ROOTCMD="schroot --directory /tmp -c source:jenkins-reproducible-arch -u root --"
USERCMD="schroot --directory /tmp -c source:jenkins-reproducible-arch -u jenkins --"
-# configure pacman + abs
+# configure root user
+echo "export http_proxy=$http_proxy" | 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
$ROOTCMD pacman -Syu --noconfirm
$ROOTCMD pacman -S --noconfirm base-devel devtools abs
+# configure abs
+$ROOTCMD abs core extra
# configure sudo
echo 'jenkins ALL= NOPASSWD: /usr/sbin/pacman *' | $ROOTCMD tee -a $SCHROOT_BASE/$TARGET/etc/sudoers
-$ROOTCMD abs core extra
-
-# configure root user
-echo "export http_proxy=$http_proxy" | tee -a $SCHROOT_BASE/$TARGET/root/.bashrc
# configure jenkins user
$ROOTCMD mkdir /var/lib/jenkins