Vagrantfile modified to support VBoxGuestAdditions_4.3.2

This commit is contained in:
Frederik Loeffert 2013-11-17 01:20:21 +01:00
Родитель 51576069ad
Коммит 7e580aacec
1 изменённых файлов: 3 добавлений и 3 удалений

6
Vagrantfile поставляемый
Просмотреть файл

@ -70,7 +70,7 @@ SCRIPT
# trigger dkms to build the virtualbox guest module install. # trigger dkms to build the virtualbox guest module install.
$vbox_script = <<VBOX_SCRIPT + $script $vbox_script = <<VBOX_SCRIPT + $script
# Install the VirtualBox guest additions if they aren't already installed. # Install the VirtualBox guest additions if they aren't already installed.
if [ ! -d /opt/VBoxGuestAdditions-4.2.12/ ]; then if [ ! -d /opt/VBoxGuestAdditions-4.3.2/ ]; then
# Update remote package metadata. 'apt-get update' is idempotent. # Update remote package metadata. 'apt-get update' is idempotent.
apt-get update -q apt-get update -q
@ -79,9 +79,9 @@ if [ ! -d /opt/VBoxGuestAdditions-4.2.12/ ]; then
apt-get install -q -y linux-headers-generic-lts-raring dkms apt-get install -q -y linux-headers-generic-lts-raring dkms
echo 'Downloading VBox Guest Additions...' echo 'Downloading VBox Guest Additions...'
wget -cq http://dlc.sun.com.edgesuite.net/virtualbox/4.2.12/VBoxGuestAdditions_4.2.12.iso wget -cq http://dlc.sun.com.edgesuite.net/virtualbox/4.3.2/VBoxGuestAdditions_4.3.2.iso
mount -o loop,ro /home/vagrant/VBoxGuestAdditions_4.2.12.iso /mnt mount -o loop,ro /home/vagrant/VBoxGuestAdditions_4.3.2.iso /mnt
/mnt/VBoxLinuxAdditions.run --nox11 /mnt/VBoxLinuxAdditions.run --nox11
umount /mnt umount /mnt
fi fi