From 1bc5d49bf8a4d7b39e519eeb2a4baf457c9f3453 Mon Sep 17 00:00:00 2001 From: kpcyrd Date: Sun, 12 Nov 2017 23:37:39 +0100 Subject: reproducible-archlinux: Add archlinux repos to pacman.conf Signed-off-by: Holger Levsen --- 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 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." -- cgit v1.2.3-54-g00ecf