6 # pull in bootstrap functions
7 . /vagrant/lib/bootstrap-functions.sh
11 # record the bootstrap.sh checksum
12 shasum $0 > /etc/bootstrap.sha
13 shasum /vagrant/lib/bootstrap-functions.sh > /etc/bootstrap-functions.sha
15 echo "---> Attempting to detect OS"
17 if [ -f /usr/bin/yum ]
19 echo "---> RH type system detected"
24 elif [ -f /usr/bin/apt-get ]
26 echo "---> Debian type system detected"
27 export DEBIAN_FRONTEND=noninteractive
29 deb_enable_serial_console
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."