Skip to content

Commit e39c7d5

Browse files
committed
fix guest additions not being installed on ubuntu 11.04 i386
the guest additions were failing to install because the proper `linux-headers-VER-generic` package was being installed after the guest additions but the guest additions needed that package. resolved by moving the package install before the guest additions install.
1 parent 94b94bf commit e39c7d5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

templates/ubuntu-11.04-server-i386/postinstall.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
date > /etc/vagrant_box_build_time
44

5+
# Apt-install various things necessary for Ruby, guest additions,
6+
# etc., and remove optional things to trim down the machine.
7+
apt-get -y update
8+
apt-get -y upgrade
9+
apt-get -y install linux-headers-$(uname -r) build-essential
10+
apt-get -y install zlib1g-dev libssl-dev libreadline5-dev
11+
apt-get clean
12+
513
# Installing the virtualbox guest additions
614
apt-get -y install dkms
715
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
@@ -13,14 +21,6 @@ umount /mnt
1321

1422
rm VBoxGuestAdditions_$VBOX_VERSION.iso
1523

16-
# Apt-install various things necessary for Ruby, guest additions,
17-
# etc., and remove optional things to trim down the machine.
18-
apt-get -y update
19-
apt-get -y upgrade
20-
apt-get -y install linux-headers-$(uname -r) build-essential
21-
apt-get -y install zlib1g-dev libssl-dev libreadline5-dev
22-
apt-get clean
23-
2424
# Setup sudo to allow no-password sudo for "admin"
2525
cp /etc/sudoers /etc/sudoers.orig
2626
sed -i -e '/Defaults\s\+env_reset/a Defaults\texempt_group=admin' /etc/sudoers

0 commit comments

Comments
 (0)