[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible-archlinux: Add archlinux repos to pacman.conf
Holger Levsen
holger at layer-acht.org
Sun Nov 12 22:52:07 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 1bc5d49bf8a4d7b39e519eeb2a4baf457c9f3453
Author: kpcyrd <git at rxv.cc>
Date: Sun Nov 12 23:37:39 2017 +0100
reproducible-archlinux: Add archlinux repos to pacman.conf
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_setup_archlinux_schroot.sh | 32 +++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/bin/reproducible_setup_archlinux_schroot.sh b/bin/reproducible_setup_archlinux_schroot.sh
index 2d8124e..057797b 100755
--- a/bin/reproducible_setup_archlinux_schroot.sh
+++ b/bin/reproducible_setup_archlinux_schroot.sh
@@ -138,4 +138,36 @@ $USERCMD bash <<-__END__
__END__
$ROOTCMD sh -c 'yes | pacman -U /pacman-git/pacman-*-x86_64.pkg.tar.xz'
+# fix /etc/pacman.conf. pacman-git doesn't have any repos configured
+cat >> $SCHROOT_BASE/$TARGET/etc/pacman.conf <<-__END__
+ #[testing]
+ #Include = /etc/pacman.d/mirrorlist
+
+ [core]
+ Include = /etc/pacman.d/mirrorlist
+
+ [extra]
+ Include = /etc/pacman.d/mirrorlist
+
+ #[community-testing]
+ #Include = /etc/pacman.d/mirrorlist
+
+ [community]
+ Include = /etc/pacman.d/mirrorlist
+
+ # If you want to run 32 bit applications on your x86_64 system,
+ # enable the multilib repositories as required here.
+
+ #[multilib-testing]
+ #Include = /etc/pacman.d/mirrorlist
+
+ [multilib]
+ Include = /etc/pacman.d/mirrorlist
+ __END__
+
+if [ "$HOSTNAME" = "profitbricks-build4-amd64" ] ; then
+ # disable signature verification so packages won't fail to install when setting the time to +$x years
+ sed -i 's/^#?SigLevel\s*=.*/SigLevel = Never/' "$SCHROOT_BASE/$TARGET/etc/pacman.conf"
+fi
+
echo "schroot $TARGET set up successfully in $SCHROOT_BASE/$TARGET - exiting now."
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list