summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorkpcyrd <git@rxv.cc>2017-11-12 23:37:39 +0100
committerHolger Levsen <holger@layer-acht.org>2017-11-12 22:51:49 +0000
commit1bc5d49bf8a4d7b39e519eeb2a4baf457c9f3453 (patch)
treeed9b6334be314030130286bc4584011632dfd457 /bin
parent66477df8643ac671c6bc27f52afbe34550758c46 (diff)
downloadjenkins.debian.net-1bc5d49bf8a4d7b39e519eeb2a4baf457c9f3453.tar.xz
reproducible-archlinux: Add archlinux repos to pacman.conf
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_setup_archlinux_schroot.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/bin/reproducible_setup_archlinux_schroot.sh b/bin/reproducible_setup_archlinux_schroot.sh
index 2d8124e1..057797b6 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."