From bc65295ec137bb17d784e5f8ac9de1b5c3661c49 Mon Sep 17 00:00:00 2001 From: Jordan Tardif Date: Thu, 7 Aug 2014 15:16:58 -0400 Subject: [PATCH] Akanda requires bird6 >= 1.3.10. When building Debian Wheezy images we need to install bird/bird6 from backports. --- scripts/create-akanda-raw-image.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/scripts/create-akanda-raw-image.sh b/scripts/create-akanda-raw-image.sh index b758719..0ae5c0a 100755 --- a/scripts/create-akanda-raw-image.sh +++ b/scripts/create-akanda-raw-image.sh @@ -15,6 +15,28 @@ deb http://mirrors.dreamcompute.com/debian $RELEASE main deb http://mirrors.dreamcompute.com/security.debian.org $RELEASE/updates main EOF + +# Need to setup bird backports for wheezy only +if [ $RELEASE = "wheezy" ]; then + echo "[*] Setup APT sources $RELEASE backports" + cat > /etc/apt/sources.list.d/backports.list < /etc/apt/preferences.d/bird +Package: bird +Pin: release a=$RELEASE-backports +Pin-Priority: 1000 + +Package: bird6 +Pin: release a=$RELEASE-backports +Pin-Priority: 1000 +EOF + +fi + + echo "[*] APT Update" apt-get update || exit 1