6 # pull in bootstrap functions
7 . /vagrant/lib/bootstrap-functions.sh
12 # record the bootstrap.sh checksum
13 sha1sum $0 > /etc/bootstrap.sha
14 sha1sum /vagrant/lib/bootstrap-functions.sh > /etc/bootstrap-functions.sha
16 echo "---> Attempting to detect OS"
18 if [ -f /usr/bin/yum ]
20 echo "---> RH type system detected"
25 elif [ -f /usr/bin/apt-get ]
27 echo "---> Debian type system detected"
28 export DEBIAN_FRONTEND=noninteractive
35 deb_disable_apt_systemd_daily
39 # It is not necessary to load uio module during bootstrap phase
40 # deb_probe_modules uio_pci_generic
42 # Make sure uio loads at boot time
43 deb_enable_modules 'uio_pci_generic'
47 # It is not necessary to mount hugepages during bootstrap phase
54 echo "bootstrap process (PID=$$) complete."