vagrant-lxc-base-boxes/fedora/install-extras.sh
Michael Adam e84c681e38 fedora: add option MASK_TMP to prevent overmounting /tmp with tmpfs
this is important for use with vagrant-cachier
2015-12-07 10:44:06 +01:00

30 lines
653 B
Bash
Executable file

#!/bin/bash
set -e
source common/ui.sh
source common/utils.sh
info 'Installing extra packages and upgrading'
debug 'Bringing container up'
utils.lxc.start
# Sleep for a bit so that the container can get an IP
SECS=20
log "Sleeping for $SECS seconds..."
sleep $SECS
# TODO: Support for appending to this list from outside
PACKAGES=(vim curl wget man-db bash-completion ca-certificates sudo openssh-server)
utils.lxc.attach yum update -y
utils.lxc.attach yum install ${PACKAGES[*]} -y
MASK_TMP=${MASK_TMP:-0}
if [ $MASK_TMP -eq 1 ]; then
# don't overmount /tmp with tmpfs: important for lxc-cachier
utils.lxc.attach systemctl mask tmp.mount
fi