#! /bin/bash
boxName=$1
echo
echo "Init script for $boxName"
echo "Full update of the system"
pacman -Syu
yaourt --noconfirm -S rpm-org
neededPackages=(gcc-fortran ccache mercurial bison flex git )
bonusPackages=(emacs tcsh)
thirdpartyPackages=(openmpi cmake hwloc)
for p in ${neededPackages[@]}; do
pacman --noconfirm -S $p
done
for p in ${bonusPackages[@]}; do
for p in ${thirdpartyPackages[@]}; do
# for the used archlinux-Box the /home is too small but / is big enough
mkdir /Foam
ln -s /Foam/ /home/vagrant/foam
chown vagrant:vagrant /Foam
echo "Archlinux-specific ended. Now doing general stuff"
/vagrant/initGeneralScript.sh
echo "Ended"