#!/bin/bash

set -eux
set -o pipefail

sudo apt-get update || true
sudo apt-get install -y --force-yes \
        apt-transport-https \
        bzip2 \
        debootstrap \
        docker.io \
        inetutils-ping \
        lsb-release \
        kpartx \
        python-lzma \
        qemu-utils \
        rpm \
        uuid-runtime \
        yum-utils || \
    sudo yum -y install \
        bzip2 \
        debootstrap \
        docker \
        kpartx \
        util-linux \
        qemu-img \
        policycoreutils-python || \
    sudo zypper -n install \
        bzip2 \
        debootstrap \
        docker \
        kpartx \
        util-linux \
        python-pyliblzma \
        yum-utils \
        qemu-tools || \
    sudo emerge \
        app-arch/bzip2 \
        app-emulation/qemu \
        dev-python/pyyaml \
        sys-block/parted \
        sys-fs/multipath-tools \
        qemu-img \
        yum-utils

#!/bin/bash

set -eux
set -o pipefail

sudo apt-get update || true
sudo apt-get install -y --force-yes \
        apt-transport-https \
        bzip2 \
        debootstrap \
        docker.io \
        inetutils-ping \
        lsb-release \
        kpartx \
        python-lzma \
        qemu-utils \
        rpm \
        uuid-runtime \
        yum-utils || \
    sudo yum -y install --enablerepo=epel \
        bzip2 \
        dpkg \
        debootstrap \
        docker \
        kpartx \
        util-linux \
        qemu-img \
        policycoreutils-python || \
    sudo zypper -n install \
        bzip2 \
        debootstrap \
        docker \
        kpartx \
        util-linux \
        python-pyliblzma \
        yum-utils \
        qemu-tools || \
    sudo emerge \
        app-arch/bzip2 \
        app-emulation/qemu \
        dev-python/pyyaml \
        sys-block/parted \
        sys-fs/multipath-tools \
        qemu-img \
        yum-utils

Use EPEL for debootstrap on centos
Use EPEL for debootstrap on centos

I747c2b8754effbc6ec82af3bf7543fd9599a6c14 removed the
centos-openstack-octata repos from the base image.  We were previously
getting debootstrap from there, so this broke the centos-7 based jobs.
Enable EPEL for the install so we use that version of debootstrap.

Additionally we noticed that dpkg wasn't installed on the build host
either, but is actually required (calls were silently failing ... a
problem for another day).  Add this.

Change-Id: I1e9db5130a05a004c3c877d1444d7097023c06e2
