Permalink
Browse files

Fix install order for guest additions. They can't be installed withou…

…t development essentials
  • Loading branch information...
1 parent 2f86263 commit 5cdd9472fd443cad22e5a921f40bd355897d1577 @rb2k committed Nov 16, 2012
@@ -2,6 +2,12 @@
date > /etc/vagrant_box_build_time
+#Updating the box
+apt-get -y update
+apt-get -y install linux-headers-$(uname -r) build-essential
+apt-get -y install zlib1g-dev libssl-dev libreadline5-dev nfs-common
+apt-get clean
+
#Installing the virtualbox guest additions
apt-get -y install dkms
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
@@ -13,12 +19,6 @@ umount /mnt
rm VBoxGuestAdditions_$VBOX_VERSION.iso
-#Updating the box
-apt-get -y update
-apt-get -y install linux-headers-$(uname -r) build-essential
-apt-get -y install zlib1g-dev libssl-dev libreadline5-dev nfs-common
-apt-get clean
-
#Setting up sudo
cp /etc/sudoers /etc/sudoers.orig
sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
@@ -2,6 +2,12 @@
date > /etc/vagrant_box_build_time
+#Updating the box
+apt-get -y update
+apt-get -y install linux-headers-$(uname -r) build-essential
+apt-get -y install zlib1g-dev libssl-dev libreadline5-dev nfs-common
+apt-get clean
+
#Installing the virtualbox guest additions
apt-get -y install dkms
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
@@ -13,12 +19,6 @@ umount /mnt
rm VBoxGuestAdditions_$VBOX_VERSION.iso
-#Updating the box
-apt-get -y update
-apt-get -y install linux-headers-$(uname -r) build-essential
-apt-get -y install zlib1g-dev libssl-dev libreadline5-dev nfs-common
-apt-get clean
-
#Setting up sudo
cp /etc/sudoers /etc/sudoers.orig
sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers

0 comments on commit 5cdd947

Please sign in to comment.