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
This commit is contained in:
parent
3fca968164
commit
9707cf5282
5 changed files with 10 additions and 5 deletions
|
@ -58,12 +58,14 @@ function unfix_shm {
|
|||
|
||||
function install_gentoo_packages {
|
||||
RUN_ONCE_SHM='1'
|
||||
if ! grep -q /dev/shm /proc/mounts; then
|
||||
if grep -q /dev/shm /proc/mounts; then
|
||||
emerge $@
|
||||
elif [[ -k /dev/shm ]]; then
|
||||
emerge $@
|
||||
else
|
||||
fix_shm
|
||||
emerge $@
|
||||
unfix_shm
|
||||
else
|
||||
emerge $@
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ if ! [ 'x86_64' = "${ARCH}" ] ; then
|
|||
fi
|
||||
|
||||
# get the element location so we can refrence things relative to it
|
||||
ELEMENT_DIR=${ELEMENT_DIR:-"${ELEMENTS_PATH}/gentoo"}
|
||||
ELEMENT_DIR=${ELEMENT_DIR:-"${ELEMENTS_PATH##*:}/gentoo"}
|
||||
# valid gentoo profiles are as follows
|
||||
# default/linux/amd64/13.0
|
||||
# default/linux/amd64/13.0/no-multilib
|
||||
|
|
1
elements/gentoo/test-elements/build-succeeds/README.rst
Normal file
1
elements/gentoo/test-elements/build-succeeds/README.rst
Normal file
|
@ -0,0 +1 @@
|
|||
Test that we can successfully build a gentoo image.
|
|
@ -0,0 +1 @@
|
|||
base
|
|
@ -8,7 +8,8 @@ sudo apt-get install -y \
|
|||
debootstrap \
|
||||
inetutils-ping \
|
||||
kpartx \
|
||||
qemu-utils || \
|
||||
qemu-utils \
|
||||
uuid-runtime || \
|
||||
sudo yum -y install \
|
||||
debootstrap \
|
||||
kpartx \
|
||||
|
|
Loading…
Reference in a new issue