MAP: Updated rules generation script.
[vpp.git] / build-root / vagrant / bootstrap.ubuntu1404.sh
index c89f098..1802301 100644 (file)
@@ -1,3 +1,6 @@
+# Fix grub-pc on Virtualbox with Ubuntu
+export DEBIAN_FRONTEND=noninteractive
+
 # Standard update + upgrade dance
 apt-get update
 apt-get upgrade -y
@@ -7,7 +10,7 @@ apt-get upgrade -y
 sudo update-alternatives --install /bin/sh sh /bin/bash 100
 
 # Install build tools
-apt-get install -y build-essential autoconf automake bison libssl-dev ccache libtool git dkms debhelper
+apt-get install -y build-essential autoconf automake bison libssl-dev ccache libtool git dkms debhelper emacs
 
 # Install other stuff
 # apt-get install -y qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
@@ -61,16 +64,12 @@ if [ -d build-root ]; then
   # Build vpp
   sudo -H -u vagrant make PLATFORM=vpp TAG=vpp_debug install-deb
 
-  # Stick the dpdk module in the canonical place
-  cp ./install-vpp_debug-native/dpdk/kmod/igb_uio.ko /lib/modules/`uname -r`/kernel/drivers/uio/
-  depmod
+  # Install debian packages
+  dpkg -i *.deb
 
-  # Load igb_uio into the kernel
-  modprobe igb_uio
+  # Start vpp
+  start vpp
 
-  # Make sure igb_uio loads at boot time
-  # Make sure uio loads at boot time
-  echo  igb_uio >> /lib/modprobe.d/igb_uio.conf
   cd ~vagrant/
   cat /vagrant/README