summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/reproducible_setup_archlinux_schroot.sh17
1 files changed, 12 insertions, 5 deletions
diff --git a/bin/reproducible_setup_archlinux_schroot.sh b/bin/reproducible_setup_archlinux_schroot.sh
index bdd31f23..743b348c 100755
--- a/bin/reproducible_setup_archlinux_schroot.sh
+++ b/bin/reproducible_setup_archlinux_schroot.sh
@@ -111,10 +111,17 @@ $ROOTCMD chown -R jenkins:jenkins /var/lib/jenkins
echo ". /etc/profile.d/proxy.sh" | tee -a $SCHROOT_BASE/$TARGET/var/lib/jenkins/.bashrc
$USERCMD bash -l -c 'gpg --check-trustdb' # first run will create ~/.gnupg/gpg.conf
echo "keyserver-options auto-key-retrieve" | tee -a $SCHROOT_BASE/$TARGET/var/lib/jenkins/.gnupg/gpg.conf
-#if [ "$HOSTNAME" = "profitbricks-build3-amd64" ] ; then
-# # YOLO, see YOLO comment above
-# echo "no-autostart" | tee -a $SCHROOT_BASE/$TARGET/var/lib/jenkins/.gnupg/gpg.conf
-#fi
-#$USERCMD bash -l -c 'gpg --recv-keys 0x091AB856069AAA1C'
+
+# NOTE: install pacman-git because there are the reproducible patches we need
+# this is 2017-11-02 on the rws3 in berlin, this can be dropped after the next
+# pacman release.
+# The workaround with sh -c is needed to delay the shell expansion due to chroot
+$USERCMD bash <<-__END__
+ mkdir /pacman-git
+ cd /pacman-git
+ wget -O PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=pacman-git
+ makepkg
+ __END__
+$ROOTCMD sh -c 'exec pacman -U /pacman-git/pacman-*-x86_64.pkg.tar.xz'
echo "schroot $TARGET set up successfully in $SCHROOT_BASE/$TARGET - exiting now."