diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-01-26 23:54:43 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-01-26 23:54:43 +0100 |
commit | 560bab249c6b6dea223bd33b260e9cd56db28ad4 (patch) | |
tree | 0f55af22c6aade4b90945b4e9de098d812b11be3 /bin | |
parent | 3c5b15ec26a95e9c16beb5cc850692934a7fe687 (diff) | |
download | jenkins.debian.net-560bab249c6b6dea223bd33b260e9cd56db28ad4.tar.xz |
reproducible archlinux: try to very hackishly work around archlinux #45351 in pacman-key/gpg-agent/schroot…
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_setup_archlinux_schroot.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/reproducible_setup_archlinux_schroot.sh b/bin/reproducible_setup_archlinux_schroot.sh index 4610de4a..7fd3e19e 100755 --- a/bin/reproducible_setup_archlinux_schroot.sh +++ b/bin/reproducible_setup_archlinux_schroot.sh @@ -81,6 +81,13 @@ chmod 755 $SCHROOT_BASE/$TARGET/etc/profile.d/proxy.sh echo ". /etc/profile.d/proxy.sh" | tee -a $SCHROOT_BASE/$TARGET/root/.bashrc # configure pacman +if [ "$HOSTNAME" = "profitbricks-build3-amd64" ] ; then + # YOLO! https://bugs.archlinux.org/task/45351 is where we got the workaround from… + # the real question however is: why on earth does this work on the jenkins node, but not on pb-build3 + # pacman starts gpg, gpg starts gpg-agent and gpg-agent is killed when the shells ends. + # this works nicely on one host, but not on the other. let's see how this works without gpg-agent at all… + sed -i -s "s#no-permission-warning#no-permission-warning --no-autostart" $SCHROOT_BASE/$TARGET/usr/bin/pacman-key +fi $ROOTCMD bash -l -c 'pacman-key --init' $ROOTCMD bash -l -c 'pacman-key --populate archlinux' # use a specific mirror |