3 # enable enforcing mode from the very start
6 # configure system for enforcing mode on next boot
7 sed -i 's/SELINUX=permissive/SELINUX=enforcing/' /etc/selinux/config
11 yum install -q -y deltarpm python{,-{crypto,devel,lxml,setuptools}} \
12 @development-tools {lib{xml2,xslt,ffi},openssl}-devel \
15 # figure out what the latest kernel installed is and switch to it
16 # NOTE: This is done like this becase the Rackspace F20 images are using
17 # extlinux / syslinux and don't switch to the newest kernel on update
18 NEWKERNEL=`rpm -qa | grep kernel-3 | sort -r | head -1 | cut -c 8-`
19 BOOTLABEL=`grep ${NEWKERNEL} /boot/extlinux.conf | grep LABEL | cut -c 7-`
20 sed -i "s/ONTIMEOUT linux/ONTIMEOUT ${BOOTLABEL}/" /boot/extlinux.conf
22 if [ ! -f /etc/udev/rules.d/80-net-setup-link.rules ]; then
23 ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules
26 echo "***************************************************"
27 echo "* PLEASE RELOAD THIS VAGRANT BOX BEFORE USE *"
28 echo "***************************************************"