diskimage-builder/tests/install_test_deps.sh
Ian Wienand 818b75af41 Move selinux packages to redhat-common
Change I008f8bbc9c8414ce948c601e3907e27764e15a52 has shown that we
build redhat images without the "semange" tool available, which comes
from the policycoreutils-python package (see also
I3f9e2c322d042a5dddba33451c0fc21a4d32a88a).

I403e7806ae10d5dd96d0727832f4da20e34b94c7 added some of the selinux
libraries to yum-minimal for ansible support, but not to others.

Given both these changes, it seems that selinux[-targeted],
libselinux[-python] and policycoreutils[-python] can reasonably
considered part of all base images.  Move the selinux related packages
into redhat-common.

This also adds it explicitly to install_test_deps.sh.  It was actually
being dragged in by the docker install, but is a required component
for building (should be in bindep, but not there with that yet).

Change-Id: Idd4ae71ee6deee84604823b6b5dc4a845f316e01
Related-Bug: #1707788
2017-08-01 11:08:54 +10:00

44 lines
924 B
Bash
Executable file

#!/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