if [ $os = "debian" ]; then
mirror="http://www.gtlib.gatech.edu/pub/debian"
- # this assumes that newer Debian releases are being added to
- # /etc/apt/trusted.gpg that is also the default location for Ubuntu trusted
- # keys. The slave should ensure that the needed keys are added accordingly
- # to this location.
- debootstrapopts='DEBOOTSTRAPOPTS=( "--keyring" "/etc/apt/trusted.gpg" )'
+ if [ "$DIST" = "jessie" ]; then
+ # despite the fact we're building for jessie, pbuilder was failing due to
+ # missing wheezy key 8B48AD6246925553. Pointing pbuilder at the archive
+ # keyring takes care of it.
+ debootstrapopts='DEBOOTSTRAPOPTS=( "--keyring" "/usr/share/keyrings/debian-archive-keyring.gpg" )'
+ else
+ # this assumes that newer Debian releases are being added to
+ # /etc/apt/trusted.gpg that is also the default location for Ubuntu trusted
+ # keys. The slave should ensure that the needed keys are added accordingly
+ # to this location.
+ debootstrapopts='DEBOOTSTRAPOPTS=( "--keyring" "/etc/apt/trusted.gpg" )'
+ fi
components='COMPONENTS="main contrib"'
elif [ "$ARCH" = "arm64" ]; then
mirror="http://ports.ubuntu.com/ubuntu-ports"