vagrant-lxc-base-boxes/centos/install-extras.sh
Michael Adam cdbae4317d centos: sleep for 20 instead of 10 seconds...
Somehow bringing up the network takes longer on my fedora host.
Possibly related to some integration / registration with systemd.
2015-12-07 10:44:06 +01:00

22 lines
512 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
utils.lxc.attach yum update -y
# TODO: Support for appending to this list from outside
PACKAGES=(vim curl wget man-db bash-completion python-software-properties ca-certificates sudo nfs-common)
utils.lxc.attach yum install ${PACKAGES[*]} -y