diskimage-builder/tests/install_test_deps.sh
Matthew Thode 9707cf5282
Add testing for the Gentoo element
This commit adds testing for the gentoo element based off of the debian
element.  In adding testing support a couple of additional errors were
found and corrected, namely the following.

* shm is not in /proc/mounts though it is valid for use based off of
  the sticky flag.
* The path in ELEMENTS_PATH needs to be pruned to be usable.
* Added uuidgen-runtime to the list of packages installed for Ubuntu
  as the new ubuntu-trusty image does not ship with it.

Change-Id: I0d2768a912b350e1b2cf40d2fd227fdc767b1bcb
2016-03-17 00:13:32 -05:00

16 lines
286 B
Bash
Executable file

#!/bin/bash
set -eux
set -o pipefail
sudo apt-get update || true
sudo apt-get install -y \
debootstrap \
inetutils-ping \
kpartx \
qemu-utils \
uuid-runtime || \
sudo yum -y install \
debootstrap \
kpartx \
qemu-img